Re: Copy a cluster from one host to an identical other

From: Keith <keith(at)keithf4(dot)com>
To: "Birchall, Austen" <austen(dot)birchall(at)metoffice(dot)gov(dot)uk>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Copy a cluster from one host to an identical other
Date: 2014-09-26 15:16:22
Message-ID: CAHw75vvybQdhUF8N558+efGgbX=2eCESE_cgdArTqv+L9BfAsA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-novice

That works yes. Just be sure to call pg_start_backup() on the master before
starting the tar and then pg_stop_backup() when you're done.
You can also use the pg_basebackup tool to help make it a little easier
http://www.postgresql.org/docs/9.2/static/app-pgbasebackup.html

On Fri, Sep 26, 2014 at 10:32 AM, Birchall, Austen <
austen(dot)birchall(at)metoffice(dot)gov(dot)uk> wrote:

> 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
>
>
>

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Birchall, Austen 2014-09-26 15:27:18 Re: Copy a cluster from one host to an identical other
Previous Message Birchall, Austen 2014-09-26 14:32:58 Copy a cluster from one host to an identical other