Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XWTCv-0004wc-Sn for pgsql-admin@arkaria.postgresql.org; Tue, 23 Sep 2014 16:44:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XWTCv-0000xL-3x for pgsql-admin@arkaria.postgresql.org; Tue, 23 Sep 2014 16:44:53 +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 1XWTCs-0000rK-BY for pgsql-admin@postgresql.org; Tue, 23 Sep 2014 16:44:50 +0000 Received: from smtp82.ord1c.emailsrvr.com ([108.166.43.82]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XWTCm-0007Um-W6 for pgsql-admin@postgresql.org; Tue, 23 Sep 2014 16:44:48 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp3.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 766E21808B7; Tue, 23 Sep 2014 12:44:42 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp3.relay.ord1c.emailsrvr.com (Authenticated sender: jeff.frost-AT-pgexperts.com) with ESMTPSA id 707F1180870; Tue, 23 Sep 2014 12:44:41 -0400 (EDT) X-Sender-Id: jeff.frost@pgexperts.com Received: from [10.10.10.15] (8.202-62-69.ftth.swbr.surewest.net [69.62.202.8]) (using TLSv1 with cipher AES128-SHA) by 0.0.0.0:465 (trex/5.2.13); Tue, 23 Sep 2014 16:44:41 GMT Content-Type: multipart/alternative; boundary="Apple-Mail=_89D2980E-EB26-4200-A55E-7D34728EF171" Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Clarification on pg_basebackup From: Jeff Frost In-Reply-To: Date: Tue, 23 Sep 2014 09:44:39 -0700 Cc: Jason Mathis , "pgsql-admin@postgresql.org" Message-Id: <101425DE-8870-4C8F-89FF-186C5D20545D@pgexperts.com> References: To: "Campbell, Lance" X-Mailer: Apple Mail (2.1878.6) X-Pg-Spam-Score: -2.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 --Apple-Mail=_89D2980E-EB26-4200-A55E-7D34728EF171 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 That's right. BTW, rather than rolling your own solution, you probably want to look at = a few off the shelf solutions like: Barman: http://www.pgbarman.org/ WAL-E: https://github.com/wal-e/wal-e On Sep 23, 2014, at 9:18 AM, Campbell, Lance wrote: > Jason, > Thanks so much. That makes sense. That was what I was trying to = communicate. OPIT vs APIT.=20 > =20 > So if I am doing a APIT I can do a pg_basebackup each night without = the =96X option. I save all WAL files. If I need to restore during the = day I then only have to restore from the last basebackup and apply all = of the WAL files from that time forward. Did I get that correct? =20 > =20 --Apple-Mail=_89D2980E-EB26-4200-A55E-7D34728EF171 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
That's right.

BTW, = rather than rolling your own solution, you probably want to look at a = few off the shelf solutions = like:




On Sep 23, 2014, at = 9:18 AM, Campbell, Lance <lance@illinois.edu> = wrote:

Jason,
Thanks so much.  That makes = sense.  That was what I was trying to communicate.  OPIT vs = APIT. 
 
So if I am doing a APIT I can do a pg_basebackup each = night without the =96X option.  I save all WAL files.  If I = need to restore during the day I then only have to restore from the last = basebackup and apply all of the WAL files from that time forward.  = Did I get that correct?    
 


= --Apple-Mail=_89D2980E-EB26-4200-A55E-7D34728EF171--