Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9DC9C6501EE for ; Wed, 30 Jul 2008 16:00:44 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 18599-03 for ; Wed, 30 Jul 2008 16:00:34 -0300 (ADT) X-Greylist: delayed 00:18:49.611147 by SQLgrey-1.7.6 Received: from shrek.krogh.cc (2605ds1-ynoe.1.fullrate.dk [90.184.12.24]) by postgresql.org (Postfix) with ESMTP id 3D1646501C9 for ; Wed, 30 Jul 2008 16:00:35 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by shrek.krogh.cc (Postfix) with ESMTP id DFFBD3BF2CB for ; Wed, 30 Jul 2008 20:41:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at shrek.krogh.cc Received: from shrek.krogh.cc ([127.0.0.1]) by localhost (shrek.krogh.cc [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H4cjiMfwpK6Q for ; Wed, 30 Jul 2008 20:41:28 +0200 (CEST) Received: from [192.168.1.13] (unknown [90.184.13.46]) by shrek.krogh.cc (Postfix) with ESMTP id 871F83BEC51 for ; Wed, 30 Jul 2008 20:41:27 +0200 (CEST) Message-ID: <4890B5E2.7080300@krogh.cc> Date: Wed, 30 Jul 2008 20:41:38 +0200 From: Jesper Krogh User-Agent: Thunderbird 2.0.0.14 (X11/20080502) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: PITR backup & recovery. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200807/227 X-Sequence-Number: 29837 Hi. I have read the manual chapter over a couple of times. I've even done a restore of my database and that worked fine. But I'd like to have confirmed that it seems correct, so it didn't just work because I didn't have any real activity on the database in my test-setup. I have a Before Backup script that does a: select pg_start_backup("label"); And ad After Backup script that does a: select pg_stop_backup(); The backup just takes "everything", meaning both WAL-files and data catalog. Runs daily incremental. After pg_stop_backup() i do a find /path/to/walarchive/ -type f -ctime 1 | xargs rm -rf The data catalog is quite big..~200GB thus the inital backup of that will take quite some time. So if there has been activity in the database over this amount of time will it still be possible to bring the db to a concistent state using the WAL-files? Thanks. -- Jesper