From: | "drum(dot)lucas(at)gmail(dot)com" <drum(dot)lucas(at)gmail(dot)com> |
---|---|
To: | bricklen <bricklen(at)gmail(dot)com> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: New Slave - timeline ERROR |
Date: | 2016-01-09 22:35:25 |
Message-ID: | CAE_gQfVm7nQRcx-Ht=MEQh_t3GhZza+qXQzxTh8o_aOrfcqX7A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
>
> rsync -azr --progress --partial postgres(at)$MASTER_IP:
> /var/lib/postgresql/data/var/lib/postgresql/data/ --exclude
> postmaster.pid
Ah ok! So this will do an incrementa, right? not supposed to copy ALL the
base/ again?
Lucas Possamai
kinghost.co.nz
<http://forum.kinghost.co.nz/memberlist.php?mode=viewprofile&u=2&sid=e999f8370385657a65d41d5ff60b0b38>
On 10 January 2016 at 11:31, bricklen <bricklen(at)gmail(dot)com> wrote:
>
>
> On Sat, Jan 9, 2016 at 2:22 PM, drum(dot)lucas(at)gmail(dot)com <drum(dot)lucas(at)gmail(dot)com
> > wrote:
>
>> *rsync would be something like:*
>>
>> from slave1:
>> rsync -av data/pg_xlog slave2:/var/lib/postgresql/data/
>>
>
> Normally I run something like the following from the slave I am setting up.
>
> rsync -azr --progress --partial postgres(at)$MASTER_IP:
> /var/lib/postgresql/data /var/lib/postgresql/data/ --exclude
> postmaster.pid
>
>
>> I didn't unterstand why doing RSYNC twice... sorry
>>
>
> Unless the source db cluster you are rsync'ing from is stopped, there will
> be changes to data files replicated from the master. The second rsync might
> not be necessary given the WALs are shipping from the master to slave2.
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | bricklen | 2016-01-09 22:40:41 | Re: New Slave - timeline ERROR |
Previous Message | bricklen | 2016-01-09 22:31:50 | Re: New Slave - timeline ERROR |