Re: Duplicating a database

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Duplicating a database
Дата
Msg-id 1098579899.21035.109.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Duplicating a database  (Karim Nassar <Karim.Nassar@NAU.EDU>)
Ответы Re: Duplicating a database
Список pgsql-general
On Thu, 2004-10-21 at 02:39, Karim Nassar wrote:
> I need to have an exact copy of a postgres install on a testing
> computer. I don't want to do slony. Is it feasible/reasonable to think
> that I could just rsync to the devel boxen from the pg server? Or is
> slony "The Way to Do It"(tm)?

If you just need a working copy, not necessarily right up to date at any
time, you can just dump and restore it:

pg_dumpall -h source_server |psql -h dest_server

add switches as necessary.


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

Предыдущее
От: Doug McNaught
Дата:
Сообщение: Re: '1 year' = '360 days' ????
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Log