pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <kgrittn@ymail.com>
To: Wells Oliver <wellsoliver@gmail.com>
To: gilberto.castillo@etecsa.cu <gilberto.castillo@etecsa.cu>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Creating new cluster by copying directory?
Date: Thu, 11 Jul 2013 13:48:50 -0700 (PDT)
Message-ID: <1373575730.11179.YahooMailNeo@web162904.mail.bf1.yahoo.com> (raw)
In-Reply-To: <CAOC+FBVXM+d4m_03xsh2MQOR24ejoLHFmw16xA5E883pRsAhng@mail.gmail.com>
References: <CAOC+FBWPBS1_nH4mTcC9qr_c6Rr410d=LR6L9LRLnDDS=zz68A@mail.gmail.com>
	<53809.192.168.207.54.1373575311.squirrel@webmail.etecsa.cu>
	<CAOC+FBVXM+d4m_03xsh2MQOR24ejoLHFmw16xA5E883pRsAhng@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (8+ messages)  latest in thread

Message-ID: <1373575730.11179.YahooMailNeo@web162904.mail.bf1.yahoo.com>
Permalink:  ../1373575730.11179.YahooMailNeo@web162904.mail.bf1.yahoo.com/
Also on:    postgresql.org/message-id/1373575730.11179.YahooMailNeo@web162904.mail.bf1.yahoo.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: kgrittn@ymail.com, wellsoliver@gmail.com, gilberto.castillo@etecsa.cu
  Subject: Re: Creating new cluster by copying directory?
  In-Reply-To: <1373575730.11179.YahooMailNeo@web162904.mail.bf1.yahoo.com>

* 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