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: [email protected] [mailto:[email protected]] On Behalf Of Kevin Grittner Sent: sexta-feira, 16 de julho de 2010 15:12 To: ENGEMANN, DAYSE; [email protected] Subject: Re: [ADMIN] How to move a database from HP server to Linux Server that had already one database. "ENGEMANN, DAYSE" <[email protected]> wrote: > Kevin Grittner <[email protected]> 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 to dump in custom format, yeah, you would use pg_restore instead. -Kevin -- Sent via pgsql-admin mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin -- Sent via pgsql-admin mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin
