Received: from bugs.unl.edu.ar (bugs.unl.edu.ar [168.96.132.208]) by postgresql.org (Postfix) with ESMTP id 69587476DFD for ; Wed, 13 Mar 2002 17:03:21 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by bugs.unl.edu.ar (Postfix) with ESMTP id 38197FDD2 for ; Wed, 13 Mar 2002 19:01:03 -0300 (GMT) Received: by bugs.unl.edu.ar (Postfix, from userid 1004) id 3C602FCA2; Wed, 13 Mar 2002 19:01:01 -0300 (GMT) Content-Type: text/plain; charset="iso-8859-1" From: =?iso-8859-1?q?Mart=EDn=20Marqu=E9s?= To: "PGSQL" Subject: Re: backup postgres database Date: Wed, 13 Mar 2002 19:00:59 -0300 X-Mailer: KMail [version 1.3.2] References: <005801c1cab4$ea8e4180$270a0a0a@esi> In-Reply-To: <005801c1cab4$ea8e4180$270a0a0a@esi> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020313220101.3C602FCA2@bugs.unl.edu.ar> X-Virus-Scanned: by AMaViS snapshot-20011031 X-Archive-Number: 200203/18 X-Sequence-Number: 987 On Mié 13 Mar 2002 14:31, you wrote: > > hello sir, > > i have a postgresql database in one system and want to transfer > > 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. -- Porqué usar una base de datos relacional cualquiera, si podés usar PostgreSQL? ----------------------------------------------------------------- Martín Marqués | mmarques@unl.edu.ar Programador, Administrador, DBA | Centro de Telematica Universidad Nacional del Litoral -----------------------------------------------------------------