| From: | "Gilberto Castillo" <gilberto(dot)castillo(at)etecsa(dot)cu> |
|---|---|
| To: | "Wells Oliver" <wellsoliver(at)gmail(dot)com> |
| Cc: | pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: Creating new cluster by copying directory? |
| Date: | 2013-07-11 20:41:51 |
| Message-ID: | 53809.192.168.207.54.1373575311.squirrel@webmail.etecsa.cu |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
> All: it would take ~4 hours to pg_restore a backup. I want to quickly
> create a duplicate cluster (for testing). My idea:
>
> 1. pg_ctlcreatecluster 9.1 test
> 2. rm /var/lib/postgresql/9.1/test/*
> 2. cp /var/lib/postgresql/9.1/main /var/lib/postgresql/9.1/test
> 3. pg_ctlcluster 9.1 test start
>
> Is this viable? If not, is there another way to create a duplicate cluster
> in a timely fashion?
Test Repmgr works with the same philosophy. ;-)
Saludos,
Gilberto Castillo
La Habana, Cuba
| Attachment | Content-Type | Size |
|---|---|---|
| unknown_filename | text/plain | 179 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Wells Oliver | 2013-07-11 20:42:01 | Re: Creating new cluster by copying directory? |
| Previous Message | Wells Oliver | 2013-07-11 20:31:05 | Creating new cluster by copying directory? |