Re: Pgbasebackup help

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Pgbasebackup help
Date: 2015-12-03 20:38:09
Message-ID: 5660A831.1050201@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 12/2/2015 9:59 PM, Yelai, Ramkumar IN BLR STS wrote:
> I can't shutdown the database during the backup and unable to use file system copy of data folder as it creates inconsistency

If you invoke pg_start_backup() before the copy, and pg_stop_backup()
after the copy, then a file system copy is consistent.

see
http://www.postgresql.org/docs/current/static/functions-admin.html#FUNCTIONS-ADMIN-BACKUP
for the explanation of those functions.

--
john r pierce, recycling bits in santa cruz

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Kretschmer 2015-12-03 21:04:54 Re: Pgbasebackup help
Previous Message Tom Lane 2015-12-03 15:02:18 Re: plperlu stored procedure seems to freeze for a minute