X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 928ACD1B541 for ; Wed, 22 Oct 2003 12:39:11 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 95454-08 for ; Wed, 22 Oct 2003 09:38:43 -0300 (ADT) Received: from dhcp-7-248.ma.lycos.com (waltham-nat.ma.lycos.com [209.202.205.1]) by svr1.postgresql.org (Postfix) with SMTP id AAC90D1B4EF for ; Wed, 22 Oct 2003 09:38:19 -0300 (ADT) Received: (qmail 6699 invoked from network); 22 Oct 2003 12:38:21 -0000 Received: from dhcp-7-41.ma.lycos.com (HELO squeegit) (10.124.7.41) by dhcp-7-248.ma.lycos.com with SMTP; 22 Oct 2003 12:38:21 -0000 Date: Wed, 22 Oct 2003 08:38:00 -0400 From: Jeff To: "Ganesan Kanavathy" Cc: pgsql-admin@postgresql.org Subject: Re: File system level backup Message-Id: <20031022083800.53139e66.threshar@torgo.978.org> In-Reply-To: <004901c39839$9b0eebb0$1300a8c0@headquarters.mq.com> References: <000001c3948f$010a43f0$1300a8c0@headquarters.mq.com> <004901c39839$9b0eebb0$1300a8c0@headquarters.mq.com> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/270 X-Sequence-Number: 10831 On Wed, 22 Oct 2003 09:12:40 +0800 "Ganesan Kanavathy" wrote: > All the while I was doing pg_dump as backup method for my pgsql db. > Today I came across File system level backup on Postgresql > Documentation. > If you do a filesystem level backup the only "safe" way to do this is to either stop postgres and then backup, or if you are using a logical volume manager take a snapshot. You cannot just "tar" a "live" pgdata directory as the contents will change as tar goes through each file and you'll be left with a corrupt database. -- Jeff Trout http://www.jefftrout.com/ http://www.stuarthamm.net/