Received: from ecint.ecinet.com (smtp.eldocomp.com [205.159.99.3]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g14GNKl56949 for ; Mon, 4 Feb 2002 11:23:21 -0500 (EST) (envelope-from nwalker@eldocomp.com) Received: from nwalke (nwalker.ecinet.com [192.168.22.250]) by ecint.ecinet.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 12Q38D79; Mon, 4 Feb 2002 09:28:06 -0700 Message-Id: <4.2.2.20020204092555.00abeac0@ecint.ecinet.com> X-Sender: nwalke@ecint.ecinet.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.2 Date: Mon, 04 Feb 2002 09:28:47 -0700 To: "manav" , From: Naomi Walker Subject: Re: Filesystem Backup In-Reply-To: <002401c1acba$5745c7d0$d418fea9@cp335088a> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_405291708==_.ALT" X-Archive-Number: 200202/22 X-Sequence-Number: 3184 --=====================_405291708==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed If I understand correctly, the only time a pure file system restore would work to put back your data was if the instance was down when the file systems were backed up. Otherwise, pg_dump of a database, or pg_dumpall of the whole instance would be necessary. If you were doing this for some other reason, this might not pertain. What started this adventure? At 08:54 AM 2/3/02 -0500, manav wrote: >Hello All, > > > >I am in a fix and need help. I am reinstalling postgresql server on my >linux workstation and\ I did a filesystem backup of ../pgsql/data/*, but >when I deleted the data directory and reconstructed it from my backup >(without the reinstall, just to check if things would work) I started >seeing errors (I mv' the data directory twice...) > >The first error was "postmaster.opt.default not found in >../pgsql/data/postmaster.opt.default' and when I created an empty file it >said '../pgsql/data/base/template1/pg_class not found'. > > > >Am I missing something? are there any other steps to a filesystem backup? > > > >-sonny -- Naomi Walker Chief Information Officer Eldorado Computing, Inc. 602-604-3100 ext 242 --=====================_405291708==_.ALT Content-Type: text/html; charset="us-ascii"
If I understand correctly, the only time a pure file system restore would work to put back your data was if the instance was down when the file systems were backed up.  Otherwise, pg_dump of a database, or pg_dumpall of the whole instance would be necessary. 

If you were doing this for some other reason, this might not pertain.  What started this adventure?

At 08:54 AM 2/3/02 -0500, manav wrote:

Hello All,

 

I am in a fix and need help. I am reinstalling postgresql server on my linux workstation and\ I did a filesystem backup of ../pgsql/data/*, but when I deleted the data directory and reconstructed it from my backup (without the reinstall, just to check if things would work) I started seeing errors (I mv' the data directory twice...)

The first error was "postmaster.opt.default not found in ../pgsql/data/postmaster.opt.default' and when I created an empty file it said '../pgsql/data/base/template1/pg_class not found'.

 

Am I missing something? are there any other steps to a filesystem backup?

 

-sonny

--
Naomi Walker
Chief Information Officer
Eldorado Computing, Inc.
602-604-3100  ext 242 --=====================_405291708==_.ALT--