Received: from fmol.5sigcmd.army.mil (fmol.5sigcmd.army.mil [147.40.43.21]) by hub.org (8.10.1/8.10.1) with ESMTP id e5TDhD112508 for ; Thu, 29 Jun 2000 09:43:13 -0400 (EDT) Received: from greenea.5sigcmd.army.mil (greenea.5sigcmd.army.mil [147.40.43.218]) by fmol.5sigcmd.army.mil (8.9.3/8.9.3) with SMTP id PAA30167 for ; Thu, 29 Jun 2000 15:42:54 +0200 Message-Id: <3.0.5.32.20000629152926.007c2bb0@fmol.5sigcmd.army.mil> X-Sender: agreene@fmol.5sigcmd.army.mil X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Thu, 29 Jun 2000 15:29:26 +0200 To: pgsql-admin@postgresql.org From: "Anthony E. Greene" Subject: Re: Exporting database In-Reply-To: <002001bfdf62$09f0d370$2ca093c0@sapientintra.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200006/147 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 PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D Linux: The choice of a GNU Generation.