Skip to content

Docs: Archive Path Seperation / Behavior for major cluster upgrades #827

Open

Description

@darioackermann

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.

Activity

  1. changed the title [-]Archive Path Seperation[/-] [+]Docs: Archive Path Seperation?[/+] on Apr 5, 2026
  2. changed the title [-]Docs: Archive Path Seperation?[/-] [+]Docs: Archive Path Seperation / Behavior for major cluster upgrades[/+] on Apr 5, 2026
  3. added
    documentationImprovements or additions to documentation
    questionFurther information is requested
    on Apr 5, 2026
  4. dosubot commented on Apr 5, 2026

    @dosubot

    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.:

    plugins:
    - name: plugin-barman-cloud
      enabled: true
      parameters:
        destinationPath: s3://my-bucket/
        serverName: cluster-example-pg17  # was cluster-example-pg16

    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].

    To reply, just mention @dosu.


    Docs are dead. Just use Dosu.

    Leave Feedback Ask Dosu about plugin-barman-cloud Share Dosu with your team

  5. Utkarsh-sharma47 commented on Jul 10, 2026

    @Utkarsh-sharma47

    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
    • changing serverName
    • impact on future backups/restores
    • links to the CNPG upgrade documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationquestionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions