Re: Move a database from one server to other

Поиск
Список
Период
Сортировка
От Nicholas Barr
Тема Re: Move a database from one server to other
Дата
Msg-id 24916.62.244.190.66.1182786241.squirrel@www.chuckie.co.uk
обсуждение исходный текст
Ответ на Move a database from one server to other  (Adrián Ribao Martínez <aribao@gmail.com>)
Ответы Re: Move a database from one server to other  (Michael Glaesemann <grzm@seespotcode.net>)
Список pgsql-general
> Hello, I have to move all the data in my actual server to the new one.
> I have several databases in postgresql, and I'd like to know the best way
> to
> move them.
> I thoung that maybe copying all the data directory... but I'm not sure,
> and I
> don't know where it's stored.
> I'd apreciate your help.
>
> Thank you very much.


Only copy the data directory if both servers are offline and not running
and if both servers use the same version of postgres. This method is not
recommended AFAIK.

It is much much safer to use pg_dump/pg_restore and know that your data is
consistent.

http://www.postgresql.org/docs/8.2/static/backup-dump.html

Nick



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

Предыдущее
От: "Nicholas Barr"
Дата:
Сообщение: Re: another simple SQL question
Следующее
От: "gary jefferson"
Дата:
Сообщение: Re: dynamic table/col names in plpgsql