Re: How to move a database from HP server to Linux Server that had already one database.

Поиск
Список
Период
Сортировка
От ENGEMANN, DAYSE
Тема Re: How to move a database from HP server to Linux Server that had already one database.
Дата
Msg-id 5FCE2C21B63D86478DBA823B3A27B40149CF1049B4@GVW1341EXA.americas.hpqcorp.net
обсуждение исходный текст
Ответ на Re: How to move a database from HP server to Linux Server that had already one database.  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: How to move a database from HP server to Linux Server that had already one database.
Список pgsql-admin
I am not sure if I can do it in this way.. As the are in diferent servers and network.

I found a paper that suggest to use pg_dump -Ft -b db_name > file.tar .... Transfer it to new server and you ther the
pg_restore-d new_db file.tar 
But as the servers have different SO.. I am not sure if it can be used...

And another question is that in the target server there is a database there that we can not destroy.

Thanks for your help.

-----Original Message-----
From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Kevin Grittner
Sent: sexta-feira, 16 de julho de 2010 15:12
To: ENGEMANN, DAYSE; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] How to move a database from HP server to Linux Server that had already one database.

"ENGEMANN, DAYSE" <dayse.engemann@hp.com> wrote:
> Kevin Grittner <Kevin.Grittner@wicourts.gov> wrote:

>> pg_dump | psql

> And to restore it.. Can I use pg_restore -d new_db_name ??

I usually pipe the output of pg_dump to psql, and thereby avoid making a copy of the dump output entirely.  If you want
todump in custom format, yeah, you would use pg_restore instead. 

-Kevin

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: How to move a database from HP server to Linux Server that had already one database.
Следующее
От: Patric Michael
Дата:
Сообщение: Stumped by a version conflict.