Re: Duplicating a database

From: "Scott Marlowe" <smarlowe(at)qwest(dot)net>
To: "Karim Nassar" <Karim(dot)Nassar(at)NAU(dot)EDU>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Duplicating a database
Date: 2004-10-24 01:04:59
Message-ID: 1098579899.21035.109.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 2004-10-21 at 02:39, Karim Nassar wrote:
> I need to have an exact copy of a postgres install on a testing
> computer. I don't want to do slony. Is it feasible/reasonable to think
> that I could just rsync to the devel boxen from the pg server? Or is
> slony "The Way to Do It"(tm)?

If you just need a working copy, not necessarily right up to date at any
time, you can just dump and restore it:

pg_dumpall -h source_server |psql -h dest_server

add switches as necessary.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2004-10-24 01:06:21 Re: [GENERAL] Question on the 8.0Beta Version
Previous Message Doug McNaught 2004-10-24 00:13:51 Re: '1 year' = '360 days' ????