pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Whitney <scott@journyx.com>
To: Techie <techchavez@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Help with PITR WAL Restore and configuration.
Date: Mon, 4 Aug 2014 12:15:16 -0500 (CDT)
Message-ID: <674692279.745123.1407172516368.JavaMail.zimbra@mail.int.journyx.com> (raw)
In-Reply-To: <CAEUA182F3=NOqjVayHMVdcxUnx3XeyQHAaohOZ9LdMqBSvWOcA@mail.gmail.com>
References: <CAEUA182F3=NOqjVayHMVdcxUnx3XeyQHAaohOZ9LdMqBSvWOcA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Let's say that you began this in January. According to your retention plan, you will have: 

Base Backups: 
-------------- 
Jan 31, 2014 
Feb 28, 2014 
Mar 31, 2014 
Apr 30, 2014 
May 31, 2014 
Jun 30, 2014 
July 31, 2014 

WAL Logs: 
Daily WAL logs since Jun 5, 2014 

If my understanding is correct, none of your base backups prior to Jun 5, 2014 will be useful for recovering any PITR other than the specific time _of_ the base backup. You cannot replay later WALs on the March backup, for example, as you are missing all of the WAL segments between Mar 31, 2014 and Jun 5, 2014. 

So, if I am reading this correctly, the only points which you could recover are: 

Jan 31, 2014 
Feb 28, 2014 
Mar 31, 2014 
Apr 30, 2014 
May 31, 2014 
Jun 30, 2014 + any point in time to your latest WAL backups. 

There would be a gap between May 31st and June 5th which would not allow PITR. 

----- Original Message -----

> Hi All,

> We are moving to a new backup solution where we will backup direct to the
> backup server using a Daily Base backup with pg_start_backup and WAL Log
> backups every 4 hours.
> In regards to retention we are planning on this.

> WAL Logs
> Daily 4 to 6 times: 60 days retention.

> Base Backup
> Daily: Mon-Thursday 7 Day Retention
> Weekly: Friday 31 Day Retention
> Monthly: Last Day of month: 365 Day Retention

> So what I am looking for is some clarification on the Base Backups that are 6
> months old for example.
> Since my WAL Log backups have a 2 month retention I can do PITR from any Base
> Backup + WAL Logs any day from 2 months back.

> However let's say for example I want to restore the Base Backup from 6 months
> ago, I only have the Base Backups.. Will I be able to recover to that point
> in time using that Base backup? I have read the PITR documentation however I
> still struggle to understand this part of it.

> Thanks
> Jimmy

view thread (4+ messages)  latest in thread

Message-ID: <674692279.745123.1407172516368.JavaMail.zimbra@mail.int.journyx.com>
Permalink:  ../674692279.745123.1407172516368.JavaMail.zimbra@mail.int.journyx.com/
Also on:    postgresql.org/message-id/674692279.745123.1407172516368.JavaMail.zimbra@mail.int.journyx.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: scott@journyx.com, techchavez@gmail.com
  Subject: Re: Help with PITR WAL Restore and configuration.
  In-Reply-To: <674692279.745123.1407172516368.JavaMail.zimbra@mail.int.journyx.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox