Re: Pgbasebackup help - Mailing list pgsql-general

From John R Pierce
Subject Re: Pgbasebackup help
Date
Msg-id 5660A831.1050201@hogranch.com
Whole thread Raw
In response to Re: Pgbasebackup help  ("Yelai, Ramkumar IN BLR STS" <ramkumar.yelai@siemens.com>)
Responses Re: Pgbasebackup help  (Andreas Kretschmer <andreas@a-kretschmer.de>)
List 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



pgsql-general by date:

Previous
From: Caleb Meredith
Date:
Subject: Re: Can row level security policies also be implemented for views?
Next
From: Andreas Kretschmer
Date:
Subject: Re: Pgbasebackup help