Обсуждение: Exporting database

Поиск
Список
Период
Сортировка

Exporting database

От
"Anupam Sanghera"
Дата:
How can I export a postgres database to another server ?
 
Thanks
Anupam
 
 

Re: Exporting database

От
"Anthony E. Greene"
Дата:
At 17:01 2000-06-26 +0530, Anupam Sanghera wrote:
>
>How can I export a postgres database to another server ?
>

Put the data into a file like this:

  psql -D dbname dbname.dump.gz

Then copy the file to the new machine and do this:

  createdb dbname
  psql dbname < dbname.dump


 Tony
 --
 Anthony E. Greene <agreene@pobox.com>
 PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
 Linux: The choice of a GNU Generation.