Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 11EC4D84656 for ; Fri, 8 Jun 2012 15:20:39 -0300 (ADT) Received: from gwmta.wicourts.gov ([165.219.244.99] helo=gw.wicourts.gov) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sd3nW-0000mo-Mn for pgsql-admin@postgresql.org; Fri, 08 Jun 2012 18:20:38 +0000 Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Fri, 08 Jun 2012 13:20:21 -0500 Message-Id: <4FD1FC0B020000250004821F@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.2 Date: Fri, 08 Jun 2012 13:20:11 -0500 From: "Kevin Grittner" To: ,"sgm" Subject: Re: Question about PITR backup References: <1339152214.5566.YahooMailClassic@web15601.mail.cnb.yahoo.com> In-Reply-To: <1339152214.5566.YahooMailClassic@web15601.mail.cnb.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201206/37 X-Sequence-Number: 39628 sgm wrote: > I have a question about PITR backup in a single server, the method > is make a base backup, and backup the WAL archive log(eg, every > day at 11:30 pm). But if the OS' harddisk is broken(eg,14:00 > pm),the system can't start, we have to recover the database on a > another server using the base backup and the WAL backup,so in this > case suppose that we only can restore the database to yesterday's > 11:30 pm state, am I right? You can't recover to a point past your last available WAL record. > I want to backup the pg_xlog folder every minute by crontab but my > concern is that the data inconsistent, because the lastest log in > pg_xlog is being updated all the time, am I right? Any > suggestions? Use streaming replication? Or at the very least, set a short archive_timeout value and copy from the archive target location frequently. -Kevin