Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZZMs-0000rP-9F for pgsql-admin@arkaria.postgresql.org; Thu, 11 Jan 2018 09:41:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZZMr-0001ET-Jk for pgsql-admin@arkaria.postgresql.org; Thu, 11 Jan 2018 09:41:49 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eZZMr-0001EJ-7W for pgsql-admin@lists.postgresql.org; Thu, 11 Jan 2018 09:41:49 +0000 Received: from mimolette.dalibo.net ([212.85.157.144] helo=mail.dalibo.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eZZMj-0004qn-IH for pgsql-admin@postgresql.org; Thu, 11 Jan 2018 09:41:47 +0000 Received: from stefan.dalibo.local (unknown [91.180.135.94]) by mail.dalibo.com (Postfix) with ESMTPSA id 328BA2C013A; Thu, 11 Jan 2018 10:41:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1515663698; bh=XyuRq1IrNQnrsUUZvmZwlE3c2nyNJmUys/vT5SyjA1I=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=lRMmPlyPZwc4pukNktKtWVSLxyYvhrGJAuTL+R4bA5+xbZDI2GZfZBhKEHTHnYLAx QEMTmg31QcFZwLazqMUlQsDisIJfsU/0krrFy4L5vKj2jezORzDFURRkjS5Lqcq7RP hX8fc38Lu49CpjgWMwvbnzZcBMs5gsd9Qx2CiDhM= Subject: Re: PG backrest restore To: Aldo Sarmiento References: Cc: "pgsql-admin@postgresql.org" From: Stefan Fercot Message-ID: Date: Thu, 11 Jan 2018 10:41:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9zXGBSza4wP52esK1KnolflBcjsShipH0" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9zXGBSza4wP52esK1KnolflBcjsShipH0 Content-Type: multipart/mixed; boundary="2ORbLwxDvbuykWCNY9ygHOghZHYd1PdvW"; protected-headers="v1" From: Stefan Fercot To: Aldo Sarmiento Cc: "pgsql-admin@postgresql.org" Message-ID: Subject: Re: PG backrest restore References: In-Reply-To: --2ORbLwxDvbuykWCNY9ygHOghZHYd1PdvW Content-Type: multipart/alternative; boundary="------------597EE8173C0AC1AE96D6D8EF" Content-Language: fr-classic This is a multi-part message in MIME format. --------------597EE8173C0AC1AE96D6D8EF Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Do you have some restore_command in the recovery.conf of your replica ? i.e. restore_command =3D '/usr/bin/pgbackrest --stanza=3Ddemo archive-get %f "= %p"' On 01/11/2018 10:37 AM, Aldo Sarmiento wrote: > I have streaming replication setup between a master/slave. The other > day the slave had some issues and couldn=E2=80=99t be brought up before= WAL > logs got archived via pgbackrest archive command. Is there a way to > bring the replica up to date using the pg backrest archives so that I > can start streaming again? Currently it=E2=80=99s complaining that the = master > doesn=E2=80=99t have the WAL logs in pg_xlog directory to do so. Thank = you, Aldo --=20 Stefan FERCOT http://dalibo.com - http://dalibo.org --------------597EE8173C0AC1AE96D6D8EF Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

Hi,

Do you have some restore_command in the recovery.conf of your replica ?

i.e.

restore_command =3D '/usr/bin/pgba=
ckrest --stanza=3Ddemo archive-get %f "%p"'

On 01/11/2018 10:37 AM, Aldo Sarmiento= wrote:
I have streaming replication se= tup between a master/slave. The other day the slave had some issues and c= ouldn=E2=80=99t be brought up before WAL logs got archived via pgbackrest= archive command. Is there a way to bring the replica up to date using the pg backrest arch= ives so that I can start streaming again? Currently it=E2=80=99s complain= ing that the master doesn=E2=80=99t have the WAL logs in pg_xlog director= y to do so. Thank you, Aldo

--=20
Stefan FERCOT
http://dali=
bo.com - http://dalibo.org
--------------597EE8173C0AC1AE96D6D8EF-- --2ORbLwxDvbuykWCNY9ygHOghZHYd1PdvW-- --9zXGBSza4wP52esK1KnolflBcjsShipH0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEGqVD/TfbxT1NtG2cKv35I2qhWC8FAlpXMVAACgkQKv35I2qh WC87iggAqX64x5ak1kM616u5m066iQ8101zKCBMflmxAjmKc/rNw+qWxYH7jWSSD 3Qu/05DFkaxN1NQ02UYv3q5gncMiyMnWwYF0uPzh3RAmHvtE5YYIZRH3ylpYFibE Begs2sHhX1LOQe2Nqfzsnu6E0gsTEXuLifEE/YtNgvKRkTIEwLgMIf+MOsi8W55M G9F7KplETwAP1y5w7yLhKScd4JdCjTI0jzv5Ng0B0bl6MXT1V2VNqoOWxaO+Pb/W /p8f56Y7lJkTQqycpeIXz9g7W9PI5YtqozO3/OIZTqf0HYXAN02DGPFP2yNh27Ev 18xheiNgL/1roNPu+xpm9vLr8ZxAnw== =DXKZ -----END PGP SIGNATURE----- --9zXGBSza4wP52esK1KnolflBcjsShipH0--