Re: PITR and base + full backups

Поиск
Список
Период
Сортировка
От Alan Hodgson
Тема Re: PITR and base + full backups
Дата
Msg-id 200809161018.00730@hal.medialogik.com
обсуждение исходный текст
Ответ на PITR and base + full backups  ("Joey K." <pguser@gmail.com>)
Список pgsql-general
On Tuesday 16 September 2008, "Joey K." <pguser@gmail.com> wrote:
> Hello,
>
> Just to be sure of our backups we plan to do a base + full backups (yes,
> we are overly paranoid)
>
> (1)  (`date`)
>
> (2) perform hot rsync first (while the database is running)
> $ rsync -avr pgdata /backup/`date`/
>
> (3) stop pg
>
> (4) perform cold rsync
> $ rsync -avr --delete pgdata /backup/`date`/
>
> (5) start pg
>
> (6) pg_stop_backup()
>
> This didn't work and not sure if this is supposed to work ;-)
>
> Or should I stick to just plain PITR?

If you can live with the downtime to do that, you don't need steps 1 or 6,
and eliminating them will probably fix your problem. I imagine stopping the
database between pg_start_backup and pg_stop_backup caused whatever problem
you experienced.

Plain PITR is better, though, if you're actually archiving the WAL logs, as
your possibly recovery points will be as current as your last archived log.


--
Alan

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

Предыдущее
От: Joshua Drake
Дата:
Сообщение: Re: Oracle and Postgresql
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Help with a foreign key with non-unique reference?