From: Stephen Frost <sfrost@snowman.net>
To: Christopher Pereira <kripper@imatronix.cl>
Cc: pgsql-general@postgresql.org
Subject: Re: pg_basebackup + incremental base backups
Date: Tue, 3 Dec 2019 22:09:07 -0500
Message-ID: <20191204030907.GB6962@tamriel.snowman.net> (raw)
In-Reply-To: <514b14cb-f0b8-157b-2755-d5170ed4d24b@imatronix.cl>
References: <514b14cb-f0b8-157b-2755-d5170ed4d24b@imatronix.cl>
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
Attachments:
signature.asc (application/pgp-signature, 818B) 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, kripper@imatronix.cl
Subject: Re: pg_basebackup + incremental base backups
In-Reply-To: <20191204030907.GB6962@tamriel.snowman.net>
References: <514b14cb-f0b8-157b-2755-d5170ed4d24b@imatronix.cl> <20191204030907.GB6962@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