You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docs: Archive Path Seperation / Behavior for major cluster upgrades #827
The old Barman Cloud plugin does not automatically separate archives during major upgrades. To preserve pre-upgrade backups and keep archives clean, changing the serverName parameter is needed.
Is this also the case for the new plugin? I haven't found any documentation regarding that.
Yes, the new barman-cloud plugin (CNPG-I) also does not automatically separate archives during major PostgreSQL upgrades. You still need to manually change the serverName plugin parameter to create a separate archive path [1].
Without doing this, you can run into timeline history file conflicts because pg_upgrade resets the timeline to 1, which causes replicas to fail with errors like "requested timeline 2 is not a child of this server's history" [2].
The recommended approach is to update the serverName parameter in the Cluster's plugin configuration before upgrading, e.g.:
This keeps your pre-upgrade backups intact at the old path while the upgraded cluster writes to a new one [1].
One thing to note: in the new plugin architecture, the serverName should be set in the Cluster plugin parameters, not in the ObjectStore resource (where it's retained only for API compatibility) [3]. A documentation update was also made to explicitly recommend using separate storage directories for major upgrades [4].
I investigated this and found that the behavior is already documented on the CloudNativePG side under "Backup and WAL Archive Considerations" (added in cloudnative-pg#9830), but I couldn't find equivalent guidance in the plugin-barman-cloud docs.
From the code path, serverName is still the archive namespace used for WAL archiving, backups, restores, and archive checks, and the plugin does not automatically separate archives during major PostgreSQL upgrades.
This looks like a documentation gap in this repository rather than a behavior change. I'd be happy to submit a docs PR covering:
why archive separation is recommended for major upgrades
Activity
[-]Archive Path Seperation[/-][+]Docs: Archive Path Seperation?[/+][-]Docs: Archive Path Seperation?[/-][+]Docs: Archive Path Seperation / Behavior for major cluster upgrades[/+]dosubot commentedon Apr 5, 2026
Yes, the new barman-cloud plugin (CNPG-I) also does not automatically separate archives during major PostgreSQL upgrades. You still need to manually change the
serverNameplugin parameter to create a separate archive path [1].Without doing this, you can run into timeline history file conflicts because
pg_upgraderesets the timeline to 1, which causes replicas to fail with errors like "requested timeline 2 is not a child of this server's history" [2].The recommended approach is to update the
serverNameparameter in the Cluster's plugin configuration before upgrading, e.g.:This keeps your pre-upgrade backups intact at the old path while the upgraded cluster writes to a new one [1].
One thing to note: in the new plugin architecture, the
serverNameshould be set in the Cluster plugin parameters, not in theObjectStoreresource (where it's retained only for API compatibility) [3]. A documentation update was also made to explicitly recommend using separate storage directories for major upgrades [4].To reply, just mention @dosu.
Docs are dead. Just use Dosu.
Utkarsh-sharma47 commentedon Jul 10, 2026
I investigated this and found that the behavior is already documented on the CloudNativePG side under "Backup and WAL Archive Considerations" (added in cloudnative-pg#9830), but I couldn't find equivalent guidance in the plugin-barman-cloud docs.
From the code path,
serverNameis still the archive namespace used for WAL archiving, backups, restores, and archive checks, and the plugin does not automatically separate archives during major PostgreSQL upgrades.This looks like a documentation gap in this repository rather than a behavior change. I'd be happy to submit a docs PR covering:
serverName