Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XELto-0002fA-4v for pgsql-admin@arkaria.postgresql.org; Mon, 04 Aug 2014 17:18:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XELtn-0000AY-J1 for pgsql-admin@arkaria.postgresql.org; Mon, 04 Aug 2014 17:18:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XELrI-000091-K0 for pgsql-admin@postgresql.org; Mon, 04 Aug 2014 17:15:40 +0000 Received: from mail.journyx.com ([209.163.206.41] helo=mail.int.journyx.com) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XELr8-0000Mv-6q for pgsql-admin@postgresql.org; Mon, 04 Aug 2014 17:15:39 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.int.journyx.com (Postfix) with ESMTP id 7E24B30008E; Mon, 4 Aug 2014 12:15:26 -0500 (CDT) Received: from mail.int.journyx.com ([127.0.0.1]) by localhost (mail.int.journyx.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 9CCPU3muSytl; Mon, 4 Aug 2014 12:15:16 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by mail.int.journyx.com (Postfix) with ESMTP id C0C6C300310; Mon, 4 Aug 2014 12:15:16 -0500 (CDT) X-Virus-Scanned: amavisd-new at mail.int.journyx.com Received: from mail.int.journyx.com ([127.0.0.1]) by localhost (mail.int.journyx.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 94E5DF0HmFuI; Mon, 4 Aug 2014 12:15:16 -0500 (CDT) Received: from mail.int.journyx.com (zimbra.int.journyx.com [192.168.100.5]) by mail.int.journyx.com (Postfix) with ESMTP id 8201E30008E; Mon, 4 Aug 2014 12:15:16 -0500 (CDT) Date: Mon, 4 Aug 2014 12:15:16 -0500 (CDT) From: Scott Whitney Reply-To: Scott Whitney To: Techie Cc: pgsql-admin@postgresql.org Message-ID: <674692279.745123.1407172516368.JavaMail.zimbra@mail.int.journyx.com> In-Reply-To: References: Subject: Re: Help with PITR WAL Restore and configuration. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_745122_1149104250.1407172516367" X-Originating-IP: [192.168.100.188] X-Mailer: Zimbra 8.0.7_GA_6021 (ZimbraWebClient - GC36 (Win)/8.0.7_GA_6021) Thread-Topic: Help with PITR WAL Restore and configuration. Thread-Index: S4fsV7dl1ToFp6h/eXEbdp7CZkX17A== X-Pg-Spam-Score: 0.1 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org ------=_Part_745122_1149104250.1407172516367 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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 ------=_Part_745122_1149104250.1407172516367 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
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

<= /div>
WAL Logs:
Daily WAL logs since Jun 5, 2014
If my understanding is correct, none of your base backups prio= r to Jun 5, 2014 will be useful for recovering any PITR other than the spec= ific time _of_ the base backup. You cannot replay later WALs on the March b= ackup, 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 poin= t in time to your latest WAL backups.

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


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.

WA= L Logs
Daily 4 to 6 times: 60 days retention.

Base Backup =
Daily: Mon-Thursday 7 Day Retention
Weekly: Friday 3= 1 Day Retention
Monthly: Last Day of month: 365 Day Retention

=
So what I am looking for is some clarification on the Base Backu= ps that are 6 months old for example.
Since my WAL Log backup= s have a 2 month retention I can do PITR from any Base Backup + WAL Logs an= y day from 2 months back.

However let's say for example I want to restore the Base Bac= kup from 6 months ago, I only have the Base Backups.. Will I be able to rec= over to that point in time using that Base backup? I have read the PITR doc= umentation however I still struggle to understand this part of it.

Thanks
Jimmy

------=_Part_745122_1149104250.1407172516367--