Skip to content

pg_probackup ARCHIVE questions #319

@hunterhuang8810

Description

@hunterhuang8810

Hi ,

from pg_probackup doc, we know

Making backups in PAGE backup mode, performing PITR, making backups with ARCHIVE WAL delivery mode and running incremental backup after timeline switch require continuous WAL archiving to be enabled.

and set continuous WAL archiving need to configure archive_command like :
archive_command = '/usr/bin/pg_probackup-12 archive-push -B /home/postgres/pg_backup --instance hunterdb --wal-file-name=%f '

you know, if without pg_probackup, we normally config archive_command like:
archive_command = 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'

I decide to use pg_probackup as our production DB backup tool, and I want to backup DB on standby node rather than primary.
so I want to only config pg_probackup on the standby backup node, and config pg_probackup continuous WAL archiving, and will not config pg_probackup on primary node.
so as above, my archive_commond on the primary node and backup standby node will not same.

could I config archive_command as normal on all nodes
archive_command = 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'

and when I need PITR, I register the wal files to pg_probackup.

I dun't want to config pg_probackup(init, add-instance ...etc) on primary node. and prefer to config archive_commad same on all cluster nodes.

thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions