Re: backup postgres database

From: Chris <csmith(at)squiz(dot)net>
To: Martín Marqués <martin(at)bugs(dot)unl(dot)edu(dot)ar>, "PGSQL" <pgsql-php(at)postgresql(dot)org>
Subject: Re: backup postgres database
Date: 2002-03-14 01:38:28
Message-ID: 5.1.0.14.0.20020314123718.025890f0@cooee.cybersydney.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php


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

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Martín Marqués 2002-03-14 10:24:12 Re: backup postgres database
Previous Message Martín Marqués 2002-03-13 22:03:59 Re: backup postgres database