Setting up streaming replication with new server as master?

From: Dave Johansen <davejohansen(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Setting up streaming replication with new server as master?
Date: 2016-02-05 20:13:31
Message-ID: CAAcYxUdTYWFdUOhiNzBv290YmeYgAv4iqh4gyiyBW3XgcCmjSw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

We would like to start using streaming replication, but the catch is that
we want the new server to be the master. The server is still in use and
receiving new data, so we would like to minimize down time, and I would
prefer to be able to copy all, or at least the large majority of the data
to the new server before doing the final sync to make it the master.

Will pg_basebackup work?
Can it be run multiple times? (i.e. start it now to copy all of the data
over the weekend and then a second time on Monday before doing the switch)
Do I need to manually copy the files with rsync?

What's the recommended way to handle this?

Thanks,
Dave

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Stephen Frost 2016-02-05 20:27:29 Re: Setting up streaming replication with new server as master?
Previous Message Fernando Hevia 2016-02-05 17:47:11 Re: Monitoring Active Connections