Re: Creating new cluster by copying directory? - Mailing list pgsql-admin

From Kevin Grittner
Subject Re: Creating new cluster by copying directory?
Date
Msg-id 1373575730.11179.YahooMailNeo@web162904.mail.bf1.yahoo.com
Whole thread Raw
In response to Re: Creating new cluster by copying directory?  (Wells Oliver <wellsoliver@gmail.com>)
List pgsql-admin
Wells Oliver <wellsoliver@gmail.com> wrote:

> So it's safe to copy the files in /var/lib/postgresql/9.1/main to
> /var/lib/postgresql/9.1/test while main is running?

As long as you copy the whole $PGDATA tree while the source cluster
is stopped, or use PITR recovery techniques:

http://www.postgresql.org/docs/9.2/interactive/backup.html

Of course, the machines must be of the same architecture.

--
Kevin Grittner
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-admin by date:

Previous
From: Wells Oliver
Date:
Subject: Re: Creating new cluster by copying directory?
Next
From: "Gilberto Castillo"
Date:
Subject: Re: Creating new cluster by copying directory?