Re: Creating new cluster by copying directory?

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Creating new cluster by copying directory?
Дата
Msg-id 1373575730.11179.YahooMailNeo@web162904.mail.bf1.yahoo.com
обсуждение исходный текст
Ответ на Re: Creating new cluster by copying directory?  (Wells Oliver <wellsoliver@gmail.com>)
Список pgsql-admin
Wells Oliver <wellsoliver@gmail.com> wrote:

> So it's safe to copy the files in /var/lib/postgresql/9.1/main to
> /var/lib/postgresql/9.1/test while main is running?

As long as you copy the whole $PGDATA tree while the source cluster
is stopped, or use PITR recovery techniques:

http://www.postgresql.org/docs/9.2/interactive/backup.html

Of course, the machines must be of the same architecture.

--
Kevin Grittner
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Wells Oliver
Дата:
Сообщение: Re: Creating new cluster by copying directory?
Следующее
От: "Gilberto Castillo"
Дата:
Сообщение: Re: Creating new cluster by copying directory?