Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1odCgQ-0000DO-69 for pgsql-general@arkaria.postgresql.org; Tue, 27 Sep 2022 15:39:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1odCgP-0006KX-28 for pgsql-general@arkaria.postgresql.org; Tue, 27 Sep 2022 15:39:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1odCgO-0006Hx-Ls for pgsql-general@lists.postgresql.org; Tue, 27 Sep 2022 15:39:40 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1odCgM-0006Ml-7Q for pgsql-general@lists.postgresql.org; Tue, 27 Sep 2022 15:39:40 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id CA5A05F7BB; Tue, 27 Sep 2022 11:39:36 -0400 (EDT) Date: Tue, 27 Sep 2022 11:39:36 -0400 From: Stephen Frost To: Inzamam Shafiq Cc: "pgsql-general@lists.postgresql.org" Subject: Re: pgbackrest Help Required Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DP/yF/nU0hRndMGD" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.1.4 (2021-12-11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --DP/yF/nU0hRndMGD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 Sta= ndby, when I configured pgbackrest the standby DB got un-synced and now I a= m unable to recover it, can anyone help or share a good document where we c= an implement pgbackrest where streaming replication is already in place usi= ng traditional pg_basebackup method? >=20 > Note: I want to configure pgbackrest and to take backup from standby DB, = however streaming replication is already there, where the archive and resto= re 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=3Dy. 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 --DP/yF/nU0hRndMGD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEwf6gbxKhD863zrx/7WyKOINHZFUFAmMzGTQACgkQ7WyKOINH ZFVjyxAAhH2ES8NhYy/o78IJxpjLyj5LQfbHTITEzHDQo5m6CdkfGMrFRmN38wd7 RXOwTvS2v0v4iTyyz88y0y11D/bE6ZyMn1TkiBgiaXR8sujQjGn6W1cQ5A7iMQIb e/nUPl+YSPNLsRFz3elTnn03yCyOXi26Pap7xDDyDeR9WPbGl3EBFKjqNuYeY7yx fpNlzi74VQXnPKW+NRQU9ZtkDhLpfKGPPykJzj26h3wsfiM3dMydyzDNRIkCbIuK EOBNQV68RpynVsQ7O8aATykFfkr8VLxI9q6eHXhFgCswUGc6H1LV4arh4t6isNYs huzofNl2h8iHZkxV2kzecD2c83+0K6sAyNrkpq92hz1/b/tSIFQc9DNpCdrbOH3S cS4NI0RTErrL37rxZd4O/Potw3FcoHFW9PuAqgRDh4uQT1M+wgAFNLW1laohencu udEIRECQ5kB8Y0fzltdZixKmI7QONr1mnS3AamhROT6dmA9vSqIqlb4PpgUTYvcO fajAwq2653mPFulEMQAlwzwlanlqFVx+Dcbmnjj/BYjOPx/gpI5S6cxNYzHZ5QR3 Z+YTYdZfl9ffMV20Og2NlAtuiRiETbbjz56ZjRRN8mMvc7kNzCsNEkloAp5XkghH iOAmB8f+ORO+VjpgLgi+cZQW+AJDqkImwDBEGACYf3Yii+IFDVk= =qRBu -----END PGP SIGNATURE----- --DP/yF/nU0hRndMGD--