Thread: Copy a cluster from one host to an identical other
If I want to copy a cluster from one host to an identical other (same size, disk layout etc.) am I right to assume that the can just:
1. Tar up /var/lib/pgsql on the original
2. ftp to the target
3. Extract tarfile into /var/lib/pgsql on the target
4. Start PostgreSQL
Thanks
Austen
Austen Birchall Senior Database Administrator
Met Office FitzRoy Road Exeter EX1 3PB United Kingdom
http://www.postgresql.org/docs/9.2/static/app-pgbasebackup.html
If I want to copy a cluster from one host to an identical other (same size, disk layout etc.) am I right to assume that the can just:
1. Tar up /var/lib/pgsql on the original
2. ftp to the target
3. Extract tarfile into /var/lib/pgsql on the target
4. Start PostgreSQL
Thanks
Austen
Austen Birchall Senior Database Administrator
Met Office FitzRoy Road Exeter EX1 3PB United Kingdom
Hi again
Actually I meant to said the original is a non WAL mode dev cluster so I will shut it down before starting the tar.
Also I would use pgdump but there is a known issue with this potentially not working with version of the application we are using & Postgres 8.4 (yes, an upgrade Project is underway!!!)
Austen
Austen Birchall Senior Database Administrator
Met Office FitzRoy Road Exeter EX1 3PB United Kingdom
Hi again
Actually I meant to said the original is a non WAL mode dev cluster so I will shut it down before starting the tar.
Also I would use pgdump but there is a known issue with this potentially not working with version of the application we are using & Postgres 8.4 (yes, an upgrade Project is underway!!!)
Austen
Austen Birchall Senior Database Administrator
Met Office FitzRoy Road Exeter EX1 3PB United Kingdom