Re: pgbackrest periodic WAL backups?

Поиск
Список
Период
Сортировка
От Ron
Тема Re: pgbackrest periodic WAL backups?
Дата
Msg-id 859f2c25-3a22-71fa-e1fa-764724183764@gmail.com
обсуждение исходный текст
Ответ на Re: pgbackrest periodic WAL backups?  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: pgbackrest periodic WAL backups?  (David Steele <david@pgmasters.net>)
Список pgsql-admin
On 12/09/2018 01:10 PM, Stephen Frost wrote:
> Greetings,
>
> * Ron (ronljohnsonjr@gmail.com) wrote:
>> I've got a full pgbackrest backup in crontab that runs weekly, and a diff
>> backup that runs nightly.  However, I can't find any way to do hourly WAL
>> backups.
>>
>> Or does "archive_command = 'pgbackrest --stanza=demo archive-push %p'" just
>> keep things automatically caught up, obviating the need for periodic WAL
>> backups (as are needed in other RDBMSs)?
> Yes and no.  With the archive command, every WAL archived will be pushed
> to the archive more-or-less immediately (or, at least, as fast as your
> system can get it there, if you enable parallel archiving in
> pgbackrest), however, WAL files have a size (by default 16MB) and if you
> have a very slowly changing system then it could possibly be hours
> between WALs being pushed to the archive by archive_command.
>
> You can address that risk by enabling archive_timeout, which will make
> PostgreSQL archive the WAL file even if it isn't full after a certain
> amount of time, reducing the potential data loss window.

I thought checkpoint_timeout forced a WAL switch.

-- 
Angular momentum makes the world go 'round.


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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: pgbackrest periodic WAL backups?
Следующее
От: Shreeyansh Dba
Дата:
Сообщение: Re: pgbackrest periodic WAL backups?