pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Anthony E. Greene <agreene@pobox.com>
To: pgsql-admin@postgresql.org
Subject: Re: Exporting database
Date: Thu, 29 Jun 2000 15:29:26 +0200
Message-ID: <3.0.5.32.20000629152926.007c2bb0@fmol.5sigcmd.army.mil> (raw)
In-Reply-To: <002001bfdf62$09f0d370$2ca093c0@sapientintra.com>

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.



view thread (2+ messages)

Message-ID: <3.0.5.32.20000629152926.007c2bb0@fmol.5sigcmd.army.mil>
Permalink:  ../3.0.5.32.20000629152926.007c2bb0@fmol.5sigcmd.army.mil/
Also on:    postgresql.org/message-id/3.0.5.32.20000629152926.007c2bb0@fmol.5sigcmd.army.mil

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: agreene@pobox.com
  Subject: Re: Exporting database
  In-Reply-To: <3.0.5.32.20000629152926.007c2bb0@fmol.5sigcmd.army.mil>
  References: <002001bfdf62$09f0d370$2ca093c0@sapientintra.com> <3.0.5.32.20000629152926.007c2bb0@fmol.5sigcmd.army.mil>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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