Re: Server move using rsync

Поиск
Список
Период
Сортировка
От Alan Hodgson
Тема Re: Server move using rsync
Дата
Msg-id 201111010808.27841.ahodgson@simkin.ca
обсуждение исходный текст
Ответ на Re: Server move using rsync  ("Stephen Denne" <stephen.denne@datam.co.nz>)
Ответы Re: Server move using rsync  (Robert Treat <rob@xzilla.net>)
Список pgsql-general
On October 31, 2011 03:01:19 PM Stephen Denne wrote:
> I'm wondering whether it's worth doing anyway, simply to check that it
> doesn't do something completely unexpected, which would presumably alert
> us to something we hadn't considered.
>

Testing is always worthwhile, if only to ensure that PostgreSQL will actually
run with your configuration on the new machine (sufficient shared memory, IP
addresses specified in postgresql.conf, etc).

However, assuming the PostgreSQL binary packages you're using are identical,
and assuming that you aren't changing tablespace pointers around, the rsync /
restart is pretty fool-proof in terms of reliably copying PostgreSQL itself.
PostgreSQL is good about updating time stamps on modified files, you don't have
to worry about needing the full compare options on rsync or anything  "-avr --
delete" is generally sufficient .

You might disable WAL archiving during a test startup to avoid sending
duplicates to your backup server.


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

Предыдущее
От: Samba
Дата:
Сообщение: Disable Streaming Replication ==> Stop WAL Sender on master and WAL receiver on Slave
Следующее
От: Roger Niederland
Дата:
Сообщение: variable not found in subplan target list