purpose/use of pg_start_backup() pg_stop_backup()

Поиск
Список
Период
Сортировка
От Jim Mercer
Тема purpose/use of pg_start_backup() pg_stop_backup()
Дата
Msg-id 20130406164605.GV24874@reptiles.org
обсуждение исходный текст
Ответы Re: purpose/use of pg_start_backup() pg_stop_backup()
Re: purpose/use of pg_start_backup() pg_stop_backup()
Список pgsql-admin
on the surface, the functions pg_start_backup() and pg_stop_backup() seem to
indicate something very useful.

as i understand it, i could do:

psql -c "pg_start_backup('$(date +%Y%m%d%H%M%S)');"
snapshot/dump $PGDATA
psql -c "pg_stop_backup();"

and this would then create a nice clean snapshot.

however, i'm trying to work out what the restore process is.

its not clear to me if one needs to do anything after restoring the dump.

or, if there is some sort of incremental process that needs to be followed
after the dump.

can someone provide a walk-through of using these functions both for
a backup and a restore?

--
Jim Mercer     Reptilian Research      jim@reptiles.org    +1 416 410-5633
"He who dies with the most toys is nonetheless dead"


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

Предыдущее
От: Jim Mercer
Дата:
Сообщение: risks of backup using filesystem snapshot/dump ?
Следующее
От: Ray Stell
Дата:
Сообщение: Re: purpose/use of pg_start_backup() pg_stop_backup()