How safe is pg_basebackup + continuous archiving? - Mailing list pgsql-general

From Kaixi Luo
Subject How safe is pg_basebackup + continuous archiving?
Date
Msg-id CAHo5iyh+miHaMGoYrYiKHC5t02nnpr0czYF6O9o+95K9z=gieA@mail.gmail.com
Whole thread Raw
Responses Re: How safe is pg_basebackup + continuous archiving?  (Michael Paquier <michael.paquier@gmail.com>)
Re: How safe is pg_basebackup + continuous archiving?  (Alex Ignatov <a.ignatov@postgrespro.ru>)
Re: How safe is pg_basebackup + continuous archiving?  (Stephen Frost <sfrost@snowman.net>)
List pgsql-general
Hello,

We use PostgreSQL at work and we do daily backups with pg_dump. After that we pg_restore the dump and check the database that there isn't any data corruption. As the database grows, the whole pg_dump / pg_restore cycle time is quickly approaching 24h, so we need to change strategies.

We've thought about using pg_basebackup + continuous archiving as an alternative backup process, but I have doubts regarding the safety of such procedure. As far as I know, pg_basebackup is done via rsync (and we also archive wals using rsync), so if by any chance  disk corruption occurs on the master server, the corruption would be carried over to our backup server.

How can we check for backup corruption in this case? Thanks you very much.

Kaixi Luo

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: cache lookup failed for index
Next
From: Willy-Bas Loos
Date:
Subject: Re: cache lookup failed for index