Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 38F8F64FD82 for ; Wed, 15 Oct 2008 07:14:00 -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 89260-02 for ; Wed, 15 Oct 2008 07:13:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [202.61.230.242]) by postgresql.org (Postfix) with ESMTP id B3AD864FCFB for ; Wed, 15 Oct 2008 07:13:54 -0300 (ADT) Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by www.postnewspapers.com.au (Postfix) with ESMTP id 985C35C09A; Wed, 15 Oct 2008 18:13:52 +0800 (WST) Received: from localhost (access [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 796971E0435; Wed, 15 Oct 2008 18:13:52 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (access.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id z+ZLa01z0zqN; Wed, 15 Oct 2008 18:13:51 +0800 (WST) Received: from [10.0.0.124] (dhcp-124.localnet [10.0.0.124]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTP id E96741E0434; Wed, 15 Oct 2008 18:13:51 +0800 (WST) Message-ID: <48F5C25F.3050108@postnewspapers.com.au> Date: Wed, 15 Oct 2008 18:13:51 +0800 From: Craig Ringer User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: Ivan Voras Cc: pgsql-performance@postgresql.org Subject: Re: Backup strategies References: <48F4D693.9000304@lerner.co.il> In-Reply-To: X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 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: 200810/79 X-Sequence-Number: 31660 Ivan Voras wrote: > Warning: DO NOT do on-the-fly binary backups without snapshots. > Archiving the database directory with tar on a regular file system, > while the server is running, will result in an archive that most likely > won't work when restored. You can do non-snapshot-based filesystem level backups with pg_start_backup() and pg_stop_backup() as part of a PITR setup. See: http://www.postgresql.org/docs/8.3/static/continuous-archiving.html That's the setup I use, with a full backup taken weekly and WAL files archived from then until the next full backup. There is always at least one full backup at any time in case a backup fails, and I can roll back in time for a minimum of a week if anything goes wrong. I also include plain SQL dumps from pg_dump in the nightly disaster recovery backups. -- Craig Ringer