Re: Combined PITR/pg_dump backups?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Combined PITR/pg_dump backups?
Дата
Msg-id 17192.1199295752@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Combined PITR/pg_dump backups?  (Brian Hurt <bhurt@janestcapital.com>)
Список pgsql-novice
Brian Hurt <bhurt@janestcapital.com> writes:
> The question I have is: can I do both?  Not as in "backing up the
> database twice", but as a combined process.  What I'm thinking of is the
> following process:
>     - I do normal WAL loging as in PITR.
>     - When I want to start a backup, I do a pg_start_backup(...), like PITR.
>     - Instead of taring up the files on the filesystem, I instead do a
> pg_dump
>     - When the pg_dump completes, I do a pg_end_backup(), like PITR.

No, this will *not* work.  You need an exact file-level image of the
database in order to do PITR restore against, and a pg_dump dump cannot
recreate that.

            regards, tom lane

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

Предыдущее
От: Brian Hurt
Дата:
Сообщение: Combined PITR/pg_dump backups?
Следующее
От: "Greg Cocks"
Дата:
Сообщение: Re: Setting a FK to look at only selected rows in the 'look-up' table...