From: Stephen Frost <sfrost@snowman.net>
To: Inzamam Shafiq <inzamam.shafiq@hotmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: pgbackrest Help Required
Date: Tue, 27 Sep 2022 11:39:36 -0400
Message-ID: <YzMZOPnk0xCGigen@tamriel.snowman.net> (raw)
In-Reply-To: <AM9P251MB0330586B7933FDECA525DF9C984E9@AM9P251MB0330.EURP251.PROD.OUTLOOK.COM>
References: <AM9P251MB0330586B7933FDECA525DF9C984E9@AM9P251MB0330.EURP251.PROD.OUTLOOK.COM>
Greetings,
* Inzamam Shafiq (inzamam.shafiq@hotmail.com) wrote:
> I am in process of configuring pgbackrest, I have followed documents and configured backup from backup server. I have a setup of Primary and Hot Standby, when I configured pgbackrest the standby DB got un-synced and now I am unable to recover it, can anyone help or share a good document where we can implement pgbackrest where streaming replication is already in place using traditional pg_basebackup method?
>
> Note: I want to configure pgbackrest and to take backup from standby DB, however streaming replication is already there, where the archive and restore commands are configured using traditional zip method.
Not sure what 'traditional zip method' means here, but if you've copied
the shell script out of the documentation, that's not a safe
configuration.
In configuration of pgbackrest, simply configure each of the PG hosts
and the repo and then set backup-standby=y. You'll need to make sure
that the archive_command is set to pgbackrest, of course. Having an
existing streaming replication setup is perfectly fine and pgbackrest
won't interfere with that. You will want to set your restore command
to pgbackrest also though, in case streaming fails.
Thanks,
Stephen
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: sfrost@snowman.net, inzamam.shafiq@hotmail.com
Subject: Re: pgbackrest Help Required
In-Reply-To: <YzMZOPnk0xCGigen@tamriel.snowman.net>
References: <AM9P251MB0330586B7933FDECA525DF9C984E9@AM9P251MB0330.EURP251.PROD.OUTLOOK.COM> <YzMZOPnk0xCGigen@tamriel.snowman.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox