Creating new cluster by copying directory?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

--
Wells Oliver
wellsoliver@xxxxxxxxx

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux