pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Exporting database
2+ messages / 2 participants
[nested] [flat]

* Exporting database
@ 2000-06-26 11:31  Anupam Sanghera <anupams@sapientinfotech.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Anupam Sanghera @ 2000-06-26 11:31 UTC (permalink / raw)
  To: pgsql-admin

How can I export a postgres database to another server ?

Thanks
Anupam

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Exporting database
@ 2000-06-29 13:29  Anthony E. Greene <agreene@pobox.com>
  parent: Anupam Sanghera <anupams@sapientinfotech.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Anthony E. Greene @ 2000-06-29 13:29 UTC (permalink / raw)
  To: pgsql-admin

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.



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-06-29 13:29 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-06-26 11:31 Exporting database Anupam Sanghera <anupams@sapientinfotech.com>
2000-06-29 13:29 ` Anthony E. Greene <agreene@pobox.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox