Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1icL2V-0000iw-Tb for pgsql-general@arkaria.postgresql.org; Wed, 04 Dec 2019 03:09:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1icL2U-0004VS-0J for pgsql-general@arkaria.postgresql.org; Wed, 04 Dec 2019 03:09:18 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1icL2T-0004Qa-It for pgsql-general@lists.postgresql.org; Wed, 04 Dec 2019 03:09:17 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1icL2L-0002UF-H4 for pgsql-general@postgresql.org; Wed, 04 Dec 2019 03:09:16 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id A03E45F7A0; Tue, 3 Dec 2019 22:09:07 -0500 (EST) Date: Tue, 3 Dec 2019 22:09:07 -0500 From: Stephen Frost To: Christopher Pereira Cc: pgsql-general@postgresql.org Subject: Re: pg_basebackup + incremental base backups Message-ID: <20191204030907.GB6962@tamriel.snowman.net> References: <514b14cb-f0b8-157b-2755-d5170ed4d24b@imatronix.cl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="G4sZkm/nF4Z7mVWc" Content-Disposition: inline In-Reply-To: <514b14cb-f0b8-157b-2755-d5170ed4d24b@imatronix.cl> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --G4sZkm/nF4Z7mVWc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Greetings, * Christopher Pereira (kripper@imatronix.cl) wrote: > Our stream replication slave server got out of sync so we need to base > backup again. If you do WAL archiving instead of depending on the WAL to exist on the primary then a replica can catch up using WAL. Having a WAL archive also means you can do point-in-time-recovery for any point. > In case of big databases, can we do incremental backups with pg_basebackup? pg_basebackup doesn't support incremental backups, though there's been discussion of adding some kind of support for it, check -hackers if you're curious. > Is there any alternative? There's a few different alternatives for PG backup software, some of which support incremental backups and restores. I'm personally involved with pgbackrest- https://pgbackrest.org though there's other options out there also (wal-g, barman, and more). Thanks, Stephen --G4sZkm/nF4Z7mVWc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJd5yNTAAoJEO1sijiDR2RVyecQAJh1JSwxdpij7sTGs8q7DhN0 9rdN/ZOmI1x5IfQxXMfJuljBZrhwzoHizoeztBh7GessUHUTy1TrSrDiVB7yCUfE 4X/fF2Z/UA7BHz0m5qd7Vrejp0y7Qab7DexCCKsa8/dSVZ/vQdzKEGwFMyaymgzp mu6LPZUFHF5f+D854oQZoWw5W81YNDSr7vGQwmbmTZnNTP+sd4rJAiPnoKS6nOyY gwsGq1rzgsF7D8d+/gH39F0A3DklbEs2JEmjxc8QxWxJSDcY6k664ZotfubuE0OS 64iNu7pLE1M/rGA0rf+da/Kd6j1qFtBrh9b9bk7IoFk1WHrMjtzqPwwOyQlJgIAu suqkRN8tLc8x9YQ5av8IskjDr8q1V8oDSHDFF17PvSNgJavMe4vWH0x5oHE0MaZV Tz0zDThoJFeHlm7kolVC4gEzWEybL3Q8zjNTnhjeGtBJRtu+v2DBNL27MvXzoSI4 hjtapml+lkNTEZgP1em38kB6vRY7X357jb+tNVPN0bdjkRgeyQrNED/DclOqEo08 yM7ocJ9rAQH5oLLyosIDrz7EVZFrDTQ+H8h+uEOrAdOEtTRFL8R74PsIs95w2jdY yHxFEMDyUDsMtpaPXvg9l/M+b/CLZv4gkpizREm5AN254zkdkZertPae+jGk9Ppg P1MP3twg/9MWKvT0oOXF =DALV -----END PGP SIGNATURE----- --G4sZkm/nF4Z7mVWc--