Received: from lists.unixathome.org (lists.unixathome.org [210.48.103.158]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9V05RP86323 for ; Tue, 30 Oct 2001 19:05:27 -0500 (EST) (envelope-from dan@langille.org) Received: from wocker (lists.unixathome.org [210.48.103.158]) by lists.unixathome.org (8.11.6/8.11.6) with ESMTP id f9V05B584042; Wed, 31 Oct 2001 13:05:12 +1300 (NZDT) (envelope-from dan@langille.org) From: "Dan Langille" Organization: novice in training To: "Leong, Fushan" Date: Tue, 30 Oct 2001 19:05:09 -0500 MIME-Version: 1.0 Subject: Re: backup file system Reply-to: dan@langille.org CC: pgsql-admin@postgresql.org Message-ID: <3BDEF9E5.3504.68FF164@localhost> In-reply-to: <2DFBC8374F5A0F4E954C07C158844F320851F8@milton.sonosite.com> X-mailer: Pegasus Mail for Win32 (v4.0, beta 40) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Archive-Number: 200110/264 X-Sequence-Number: 2508 On 30 Oct 2001 at 15:27, Leong, Fushan wrote: > I am working on a shell script to backup my postgres database. Compared > with pg_dump and pg_dumpall, I would like to backup the file system > instead of dump the database because I can shutdown the database server > in midnight for a few hours. I also can sure I will have a stable backup. > ( No user is doing anything at the same time ) Personally, I'd rather use pg_dump. That way I'm guaranteed to have a file which will work with a future version of PostgreSQL. Why do you want to back up the file system instead of using pg_dump? SIDE ISSUE: A possible benefit of using pg_dump instead of backing up the file system: all parts of the database are excerised/explored; any bad parts of the file system will be identified then. -- Dan Langille The FreeBSD Diary - http://freebsddiary.org/ - practical examples