Re: Incremental Backups in postgres - Mailing list pgsql-general

From Greg Smith
Subject Re: Incremental Backups in postgres
Date
Msg-id 4AFB2928.9040207@2ndquadrant.com
Whole thread Raw
In response to Re: Incremental Backups in postgres  (akp geek <akpgeek@gmail.com>)
List pgsql-general
akp geek wrote:
> Got it almost. Thanks a lot. One final question, please bear with me.
>
> 1.  select pg_start_backup('label')  ==> 10 AM
> 2.  PGDATA folder backup ==> 10:05 AM
> 3. select pg_stop_backup => 10.10AM
> 4. The archiving will start writing files
>
You've got step (4) in the wrong place.  The archiver will generate
files you are compelled to save as soon as you issue pg_start_backup in
(1).  That's how you're able to recover from a failure at any time after
that.  When you issue pg_stop_backup, it will tell you what files it
expects to be copied over to the slave system in order to recovery from
a failure, and that list will go back to when you started the backup.
Saving those is actually part of the base backup process, as documented
in the manual if you read that section more carefully.

--
Greg Smith    2ndQuadrant   Baltimore, MD
PostgreSQL Training, Services and Support
greg@2ndQuadrant.com  www.2ndQuadrant.com


pgsql-general by date:

Previous
From: akp geek
Date:
Subject: Re: Incremental Backups in postgres
Next
From: Raymond O'Donnell
Date:
Subject: pgday.eu