Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B00F22E002D for ; Mon, 24 Mar 2008 19:23:54 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 80115-03 for ; Mon, 24 Mar 2008 19:23:51 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 5FF1E2E002C for ; Mon, 24 Mar 2008 19:23:51 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m2OMNmeh003770; Mon, 24 Mar 2008 18:23:49 -0400 (EDT) To: "Matthew T. O'Connor" cc: Steve Poe , pgsql-performance@postgresql.org Subject: Re: Planning hot/live backups? In-reply-to: <47E8128E.1060600@zeut.net> References: <721b21dc0803241323u73443060w3a1912d52714549b@mail.gmail.com> <47E8128E.1060600@zeut.net> Comments: In-reply-to "Matthew T. O'Connor" message dated "Mon, 24 Mar 2008 16:43:58 -0400" Date: Mon, 24 Mar 2008 18:23:48 -0400 Message-ID: <3769.1206397428@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/451 X-Sequence-Number: 29405 "Matthew T. O'Connor" writes: > Steve Poe wrote: >> The owners of the animal hospital where I work at want to consider live/hot >> backups through out the day so we're less likely to lose a whole >> day of transaction. We use Postgresql 8.0.15. We do 3AM >> backups, using pg_dumpall, to a file when there is very little activity. > You probably want to look into PITR, you can have a constant ongoing > backup of your data and never lose more than a few minutes of data. The > overhead isn't all the big especially if you are shipping the log files > to a separate server. But note that you really need to update to a newer major release before depending on PITR. While 8.0 nominally has support for it, it's taken us several releases to really get the operational gotchas sorted out. regards, tom lane