Received: from cooee.squiz.net (cooee.squiz.net [203.25.173.1]) by postgresql.org (Postfix) with SMTP id 52627476927 for ; Wed, 13 Mar 2002 20:38:37 -0500 (EST) Received: (qmail 2081 invoked from network); 14 Mar 2002 01:47:44 -0000 Received: from area51.squiz.net (HELO area51.cybersydney.com.au) (203.25.173.63) by cooee.squiz.net with SMTP; 14 Mar 2002 01:47:44 -0000 Message-Id: <5.1.0.14.0.20020314123718.025890f0@cooee.cybersydney.com.au> X-Sender: csmith@cooee.cybersydney.com.au X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 14 Mar 2002 12:38:28 +1100 To: =?iso-8859-1?Q?Mart=EDn?= =?iso-8859-1?Q?_Marqu=E9s?= , "PGSQL" From: Chris Subject: Re: backup postgres database In-Reply-To: <20020313220101.3C602FCA2@bugs.unl.edu.ar> References: <005801c1cab4$ea8e4180$270a0a0a@esi> <005801c1cab4$ea8e4180$270a0a0a@esi> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200203/20 X-Sequence-Number: 989 >On Mi=E9 13 Mar 2002 14:31, you wrote: > > > hello sir, > > > i have a postgresql database in one system and want to transf= er > > > the same to another system. i am not finding a way to transfer this > > > database from one system to another.if i transfer the file in > > > /var/lib/pgsql/libdatabase them it gives error.how shall i transfer > > > database. > > > another thing. how to take up backups of the database on the system. > > > pls help me as i am new to postgresql > > > thanking you > > > Arun > > > > You can use the pg_dump utility (to extract a PostgreSQL database into a > > script file or other archive file) and the pg_restore utility (restore a > > Postgres database from an archive file created by pg_dump) or the psql > > interactive client. > > (see the 'Examples' on PostgreSQL 7.1 Documentation, PostgreSQL Client > > Applications reference) > >Isn't it that > >psql template1 > dump-file > >also works? That's how I restore a backup. That would be dumping template1 not restoring to it :) (Change the > to <= =20 and you've got it right). Chris.