Re: New Slave - timeline ERROR

Поиск
Список
Период
Сортировка
От bricklen
Тема Re: New Slave - timeline ERROR
Дата
Msg-id CAGrpgQ9BharvX-RuaU4Qy2buW7Qn1gpRb6QA3BA5d_W_M5G8aQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: New Slave - timeline ERROR  ("drum.lucas@gmail.com" <drum.lucas@gmail.com>)
Ответы Re: New Slave - timeline ERROR  ("drum.lucas@gmail.com" <drum.lucas@gmail.com>)
Список pgsql-general


On Sat, Jan 9, 2016 at 2:22 PM, drum.lucas@gmail.com <drum.lucas@gmail.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@$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.
 

В списке pgsql-general по дате отправления:

Предыдущее
От: "drum.lucas@gmail.com"
Дата:
Сообщение: Re: New Slave - timeline ERROR
Следующее
От: "drum.lucas@gmail.com"
Дата:
Сообщение: Re: New Slave - timeline ERROR