X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A93E43A557D for ; Mon, 24 Jan 2005 18:05:20 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 77976-04 for ; Mon, 24 Jan 2005 18:05:12 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 002183A55A3 for ; Mon, 24 Jan 2005 18:05:08 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j0OI50hk023144; Mon, 24 Jan 2005 13:05:01 -0500 (EST) To: Scott Marlowe Cc: Pallav Kalva , pgsql-admin@postgresql.org Subject: Re: Postgres 8.0 Backups In-reply-to: <1106586565.16640.90.camel@state.g2switchworks.com> References: <41F52694.1090309@deg.cc> <1106586565.16640.90.camel@state.g2switchworks.com> Comments: In-reply-to Scott Marlowe message dated "Mon, 24 Jan 2005 11:09:25 -0600" Date: Mon, 24 Jan 2005 13:05:00 -0500 Message-ID: <23143.1106589900@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/250 X-Sequence-Number: 16109 Scott Marlowe writes: > On Mon, 2005-01-24 at 10:47, Pallav Kalva wrote: >> I am working on a backup script for Postgres 8.0 online backups and >> since i have to copy the whole pgdata directory , i am wondering after i >> copy the pgdata directory can I run gzip or tar on the data directory ? > Generally speaking, file system level backups are not the best way to > backup postgresql, since they require either shutting down the server or > using a snapshot file system to get a coherent backup. In the context of online backup operations, that advice isn't relevant anymore ... Personally I would do "tar cfz pgdata.tar.gz $PGDATA" or equivalent, rather than making an explicit copy of the directory tree first. regards, tom lane