Re: pb_basebackup process not working

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: pb_basebackup process not working
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B5395E175@ntex2010a.host.magwien.gv.at
обсуждение исходный текст
Ответ на pb_basebackup process not working  ("Campbell, Lance" <lance@illinois.edu>)
Список pgsql-admin
Lance Campbell wrote:
[realizes that pg_basebackup options -X s and -z are incompatible]

> 1)      Now what should I try?    I don’t want to have to write out the entire backup of my database
> files in an uncompressed format.  That is just crazy and silly.

You have basically two options:

a) Don't include the WAL files with the base backup.

   If you are planning to use PITR, you'll have to archive those separately anyway.
   So why include them in the base backup?

b) Use -X f and "set wal_keep_segments" high enough that the WAL files are not deleted.

> 2)      Why offer tar and gzip as an option in my first attempt if it won’t work?  Is there something
> I am missing?

Yes, namely that WAL files get deleted/recycled from pg_xlog when they are no longer needed.
If your backup takes too long, the earliest WAL files that are needed for recovery to a
consistent state will be gone when the backup is done.

Yours,
Laurenz Albe

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Campbell, Lance"
Дата:
Сообщение: pb_basebackup process not working
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Is Bi-Directional Replication (BDR) is fully integrated into PostgreSQL 9.6 or 9.7?