X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 01283D1C4BF for ; Tue, 22 Jul 2003 21:45:06 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 97302-02 for ; Tue, 22 Jul 2003 18:44:21 -0300 (ADT) Received: from c009.snv.cp.net (h018.c009.snv.cp.net [209.228.34.131]) by svr1.postgresql.org (Postfix) with SMTP id 5B095D1C4C1 for ; Tue, 22 Jul 2003 18:45:03 -0300 (ADT) Received: (cpmta 13916 invoked from network); 22 Jul 2003 14:45:04 -0700 Received: from 66.95.24.58 (HELO BISIL) by smtp.bisil.com (209.228.34.131) with SMTP; 22 Jul 2003 14:45:04 -0700 X-Sent: 22 Jul 2003 21:45:04 GMT Reply-To: From: "Srinivas Kotapally" To: Subject: Using the /var/lib/pgsql/data directory in the absense of a backup for recovery Date: Tue, 22 Jul 2003 17:47:34 -0400 Message-ID: <003301c3509a$dd3f3a80$3a185f42@BISIL> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200307/235 X-Sequence-Number: 9575 Hello all I am a newbie PostgreSQL DB admin. I have the following problem: 1. I have a redhat 8 box which has postgres installed. 2. I have reinstalled postgresql 7.2.1-5 (native postgres installation on RedHat 7.3) on the redhat 8.0 3. I don't have the database backups from my 7.3 installation - I however have access to the /var/lib/pgsql/data directory. My question is... can I use this to recover the database from the 7.3 version. We got hacked and the earlier system was unusable. I tired to do an initdb but it would not let me provide the existing data directory and got the following: -bash-2.05b$ initdb The files belonging to this database system will be owned by "postgres". This use must also own the server process. initdb: The directory /var/lib/pgsql/data exists but is not empty. If you want to create a new database system, either remove or empty the directory /var/lib/pgsql/data or run initdb with an argument other than /var/lib/pgsql/data. I tried to do fire up the postmaster process and could not fire up the DB. I don't get a message the system just returns to the prompt without starting the database. Any help would be welcome!! Thanks Srinivas