Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 8F5F8476B5A for ; Thu, 13 Jun 2002 12:33:55 -0400 (EDT) Received: from linuxmail.lgsinc.com (unknown [12.22.4.163]) by postgresql.org (Postfix) with ESMTP id 795D5476F74 for ; Thu, 13 Jun 2002 12:31:57 -0400 (EDT) Received: from timetop ([10.13.15.254]) by linuxmail.lgsinc.com (8.11.0/8.8.7) with SMTP id g5DGVA114073; Thu, 13 Jun 2002 09:31:10 -0700 Date: Thu, 13 Jun 2002 09:21:58 -0700 From: Tim Ellis To: "Yuen Joyce" Cc: pgsql-admin@postgresql.org Subject: Re: Message-Id: <20020613092158.5706882b.Tim.Ellis@gamet.com> In-Reply-To: References: Organization: Gamet X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i586-mandrake-linux-gnu) WerdupHomey: 3.14159265358979323 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200206/84 X-Sequence-Number: 4519 > I am interested in the file system level backup: > > http://www.postgresql.org/idocs/index.php?backup-file.html > > Is there any documentation/ suggestions on restoring file system > backups. It would be identical to Oracle's cold backup strategy (about which I'm sure you'll find volumes on the web). It is actually rather simple in concept: 1. tar up your entire Postgres directory (assuming your databases live within the Postgres directory) after you've shut down all your databases. 2. Wait until database crashes and is irrecoverable. 3. De-tar your Postgres backup into the directory again. 4. Start up your database. 5. Be delighted about how well it worked out, but because you're paranoid, do as many queries as you can on the data to see if it looks sane. Of course, it is suggested you replace step #2 with: "Every now and then when you're paranoid do steps 3-5 somewhere." I suggest you read any backup and recovery book. I particularly recommend Unix Backup and Recovery here: http://www.backupcentral.com/thebook.html -- that book, although dealing not with database backups, will cover 90% of the concepts you need to understand Postgres "cold" filesystem-level backups. As a DBA, though, I'd finally give you this advice: use the online backup facility. It shouldn't be any more difficult, and it will let you leave the database up and running whilst you backup. -- Tim Ellis DBA, Gamet