pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris <csmith@squiz.net>
To: Martín Marqués <martin@bugs.unl.edu.ar>
To: PGSQL <pgsql-php@postgresql.org>
Subject: Re: backup postgres database
Date: Thu, 14 Mar 2002 12:38:28 +1100
Message-ID: <5.1.0.14.0.20020314123718.025890f0@cooee.cybersydney.com.au> (raw)
In-Reply-To: <20020313220101.3C602FCA2@bugs.unl.edu.ar>
References: <005801c1cab4$ea8e4180$270a0a0a@esi>
	<Pine.BSO.4.21.0203131936110.25120-100000@library.iisc.ernet.in>
	<005801c1cab4$ea8e4180$270a0a0a@esi>


>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.

That would be dumping template1 not restoring to it :) (Change the > to < 
and you've got it right).

Chris.




view thread (11+ messages)  latest in thread

Message-ID: <5.1.0.14.0.20020314123718.025890f0@cooee.cybersydney.com.au>
Permalink:  ../5.1.0.14.0.20020314123718.025890f0@cooee.cybersydney.com.au/
Also on:    postgresql.org/message-id/5.1.0.14.0.20020314123718.025890f0@cooee.cybersydney.com.au

 · 

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-php@postgresql.org
  Cc: csmith@squiz.net, martin@bugs.unl.edu.ar
  Subject: Re: backup postgres database
  In-Reply-To: <5.1.0.14.0.20020314123718.025890f0@cooee.cybersydney.com.au>
  References: <005801c1cab4$ea8e4180$270a0a0a@esi> <Pine.BSO.4.21.0203131936110.25120-100000@library.iisc.ernet.in> <5.1.0.14.0.20020314123718.025890f0@cooee.cybersydney.com.au>

* 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