X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 595ECD1B52C for ; Thu, 4 Sep 2003 22:12:29 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 54484-04 for ; Thu, 4 Sep 2003 19:12:21 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id AF5B6D1B89A for ; Thu, 4 Sep 2003 19:12:16 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h84MC0d29155; Thu, 4 Sep 2003 18:12:00 -0400 (EDT) From: Bruce Momjian Message-Id: <200309042212.h84MC0d29155@candle.pha.pa.us> Subject: Re: Seeking information about backup/recovery In-Reply-To: <2D92FEBFD3BE1346A6C397223A8DD3FC0923CC@THOR.goeci.com> To: Murthy Kambhampaty Date: Thu, 4 Sep 2003 18:12:00 -0400 (EDT) Cc: Mary Edie Meredith , pgsql-admin@postgresql.org, osdldbt-general X-Mailer: ELM [version 2.4ME+ PL106 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/81 X-Sequence-Number: 10169 Murthy Kambhampaty wrote: > IMHO, while point-in-time recovery would be great to have, there are many > applications that benefit from having online backup and recovery without > needing log roll-forward. For example, Oracle contrasts "Full Database > Point-in-time Recovery", the feature mentioned by Bruce, with "Tablespace > Point in Time Recovery (TSPITR)" [1]. With postgresql and WAL, you can > implement the equivalent of TSPITR. By using filesystem snapshot > capabilities provided by certain storage appliances (NetApp Filer?) or by > operating system service in Linux (Logical Volume Manager, "LVM") to "... > make periodic saves of data files to another disk, a tape or another host > and also archive the WAL log files". Once you have the copy, you can put it > on disk, start a postgresql server (call it the backup server) on it, and > then dump and restore the data to a running server ("production server") on > the same or a different host. > > This procedure allows you to recover a recent copy of any database, schema > or table, depending on the frequency with which you take snapshots. By using > rysnc to copy the snapshots over to a backup disk volume you can get > incremental backup capability, which shrinks the backup window to a few > minutes (and less than an hour even for databases with multiple gigabytes > worth of INSERTs). With such a small backup window, one can minimize data > loss in case of disk failure or corruption by increasing backup frequency. I assume you are contrasting _any_ point-in-time recovery to recover up to the crash point, right? Anyway, unfortunately, WAL doesn't contain enough information to recover without having the file system files in some consistent state, even if that state is old. In fact, the files have to be consistent as of the last checkpoint. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073