Re: pg_basebackup + incremental base backups

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Christopher Pereira <kripper(at)imatronix(dot)cl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_basebackup + incremental base backups
Date: 2019-12-04 03:09:07
Message-ID: 20191204030907.GB6962@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Greetings,

* Christopher Pereira (kripper(at)imatronix(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Paquier 2019-12-04 04:48:43 Re: upgrade and migrate
Previous Message Julie Nishimura 2019-12-03 22:32:22 upgrade and migrate