Re: Backups over slave instead master?

From: Shaun Thomas <sthomas(at)optionshouse(dot)com>
To: Edson Richter <edsonrichter(at)hotmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Backups over slave instead master?
Date: 2014-05-01 15:54:46
Message-ID: 53626E46.4060507@optionshouse.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 05/01/2014 10:31 AM, Edson Richter wrote:

> I'm wondering if would be possible to execute these backups in the slave
> server instead, so I can avoid the overhead of backups on master system?

If you're on PostgreSQL 9.3, you can backup the slave server safely. If
not, you'll need to run this command on the master system first:

SELECT pg_start_backup('some-label');

After the backup is done, run this on the master server:

SELECT pg_stop_backup();

--
Shaun Thomas
OptionsHouse | 141 W. Jackson Blvd. | Suite 500 | Chicago IL, 60604
312-676-8870
sthomas(at)optionshouse(dot)com

______________________________________________

See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Seb 2014-05-01 17:50:57 break table into portions for writing to separate files
Previous Message Edson Richter 2014-05-01 15:31:17 Backups over slave instead master?