From anupams@sapientinfotech.com Mon Jun 26 11:27:57 2000 Received: from shiva.indiaone.com (shiva.indiaone.com [209.150.128.98]) by hub.org (8.10.1/8.10.1) with ESMTP id e5QBRv197089 for ; Mon, 26 Jun 2000 07:27:57 -0400 (EDT) Received: from schindler.sapientintra.com ([203.197.23.62]) by shiva.indiaone.com (8.8.5/8.8.5) with ESMTP id GAA02081 for ; Mon, 26 Jun 2000 06:27:33 -0500 Received: from wooster (nt.sapientintra.com [192.147.160.44]) by schindler.sapientintra.com (8.9.3/8.9.3) with SMTP id QAA05928 for ; Mon, 26 Jun 2000 16:56:12 +0530 Message-ID: <002001bfdf62$09f0d370$2ca093c0@sapientintra.com> From: "Anupam Sanghera" To: Subject: Exporting database Date: Mon, 26 Jun 2000 17:01:15 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001D_01BFDF90.23598FE0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Archive-Number: 200006/143 This is a multi-part message in MIME format. ------=_NextPart_000_001D_01BFDF90.23598FE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable How can I export a postgres database to another server ? Thanks Anupam ------=_NextPart_000_001D_01BFDF90.23598FE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
How can I export a postgres database = to=20 another server ?
 
Thanks
Anupam
 
 
------=_NextPart_000_001D_01BFDF90.23598FE0-- From agreene@pobox.com Thu Jun 29 13:43:13 2000 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.