Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqH5L-0004ZL-6d for pgsql-general@arkaria.postgresql.org; Thu, 16 Aug 2018 12:09:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fqH5J-0003Ms-3f for pgsql-general@arkaria.postgresql.org; Thu, 16 Aug 2018 12:09:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqH5I-0003Ml-Rg for pgsql-general@lists.postgresql.org; Thu, 16 Aug 2018 12:09:00 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fqH5E-0007qF-9S for pgsql-general@lists.postgresql.org; Thu, 16 Aug 2018 12:08:59 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 2F57F5F79C; Thu, 16 Aug 2018 08:08:54 -0400 (EDT) Date: Thu, 16 Aug 2018 08:08:54 -0400 From: Stephen Frost To: Phil Endecott Cc: David Steele , pgsql-general@lists.postgresql.org Subject: Re: During promotion, new master tries to archive same segment twice Message-ID: <20180816120854.GL3326@tamriel.snowman.net> References: <11b405a6-2176-9510-bf5b-ea9c0e860635@pgmasters.net> <1534408657322@dmwebmail.dmwebmail.chezphil.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yrgCFfTNRYZeurLJ" Content-Disposition: inline In-Reply-To: <1534408657322@dmwebmail.dmwebmail.chezphil.org> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --yrgCFfTNRYZeurLJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Phil Endecott (spam_from_pgsql_lists@chezphil.org) wrote: > David Steele wrote: > >pgBackRest has done this for years and it saves a *lot* of headaches. >=20 > The system to which I am sending the WAL files is a rsync.net > account. I use it because of its reliability, but methods for > transferring files are limited largely to things like scp and > rsync. You might consider using a well-tested PG backup tool locally and then simply rsync that backup over to rsync.net. Certainly with pgbackrest, we intend and expect people to use more routine "just copy all the files" backup methods for backing up the repository. Basically, you could pgbackrest to /some/local/path and then rsync from there over to rsync.net. Having an rsync or scp 'storage' option (similar to the s3 one) for pgbackrest might be interesting.. We discussed having the ability to start a backup from the PG server at one point but in that discussion we were thinking pgbackrest would also be installed on the backup server. This would be different from that in that the remote side would only need to support rsync or scp. You'd have to accept that if the the backup server dies then you lose data though, since I don't believe there's a way to ask for an fsync() through rsync or scp, which makes it a much less compelling feature, unless rsync.net guarantees writes somehow..? Thanks! Stephen --yrgCFfTNRYZeurLJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJbdWlVAAoJEO1sijiDR2RVknEP/2CV0PvlYhpqxWzs4rQaP9GD nJF8JG2TG9nW1lKAem4lwjbT4B333WCjz7wQ3Ihbn5hse69A4viH6jjOUEzJgqXf 9qYHxrRJaCD5I+YLd6T8J+AI9gfOjN73/5WUN8Q24IMoraInX06OXSj/vNSJ3nfc d5UHtn3dqCYD+NhAT6TYtxcB35LVf5qZDcTaQRhFwgv3kN0ffvHtPpLb3350xh9A fRyJe5NBzH90y4yGpd2DrGD/9zH1puIrh0a6m9YTc5sMD7npm5a7zo/fdWNinzzd JTlkkEx2eHsr06z5yzBnA8aWjsXY1N7xxkkTIETSc//ujLjRAcVcqmGi9KataLTh qYBs+o5RfF2Kek5jcIOIQR2evMOZmrgZmXfvHm8nDGblAubJxvrzdZyaf97hCKOT aNrfMpRMptNf+47F2XdZaH8U1E8Vvgikggjn9kzW8Z8Ts7OBK1q7YLe/Zqu4IGm+ uRpOCghbz+8Wy50AF42YHsNsCz7CzlKGX50C/QUgdhBJRu7NH0797TN4Fv2DXnNh Zf1bQWVQ134TMIzIFy3ZXqgfnhnMMYNU4P1ID1526FLpF1Q9BrP6MAYzaS8SnKCm S4bMo0d57r47cGI4zZIdssDhafX0EPIVybJihmyXu8Ao4XpbQUBk01KRskBIUVX8 44BJPzKs6oI9hPVUT7l7 =vQDZ -----END PGP SIGNATURE----- --yrgCFfTNRYZeurLJ--