Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 7BE819FB6A5 for ; Thu, 21 Jun 2007 21:26:59 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 16307-07 for ; Thu, 21 Jun 2007 21:26:41 -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 3B3559FB626 for ; Thu, 21 Jun 2007 21:26:48 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l5M0QjWp009762; Thu, 21 Jun 2007 20:26:46 -0400 (EDT) To: Dan Gorman cc: pgsql-performance@postgresql.org Subject: Re: PITR Backups In-reply-to: <7E0807EE-B970-4869-A248-B838E42AD9EE@hi5.com> References: <7E0807EE-B970-4869-A248-B838E42AD9EE@hi5.com> Comments: In-reply-to Dan Gorman message dated "Thu, 21 Jun 2007 16:31:32 -0700" Date: Thu, 21 Jun 2007 20:26:45 -0400 Message-ID: <9761.1182472005@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/503 X-Sequence-Number: 25536 Dan Gorman writes: > All of our databases are on NetApp storage and I have been looking > at SnapMirror (PITR RO copy ) and FlexClone (near instant RW volume > replica) for backing up our databases. The problem is because there > is no write-suspend or even a 'hot backup mode' for postgres it's > very plausible that the database has data in RAM that hasn't been > written and will corrupt the data. I think you need to read the fine manual a bit more closely: http://www.postgresql.org/docs/8.2/static/backup-file.html If the NetApp does provide an instantaneous-snapshot operation then it will work fine; you just have to be sure the snap covers both data and WAL files. Alternatively, you can use a PITR base backup as suggested here: http://www.postgresql.org/docs/8.2/static/continuous-archiving.html In either case, the key point is that you need both the data files and matching WAL files. regards, tom lane