X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 5CC389FB2DF for ; Sat, 19 Aug 2006 06:48:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 76657-07 for ; Sat, 19 Aug 2006 06:48:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from aranzo.netg.se (aranzo.netg.se [212.91.141.40]) by postgresql.org (Postfix) with ESMTP id 4495F9FB2AC for ; Sat, 19 Aug 2006 06:48:27 -0300 (ADT) Received: from arsi (helo=localhost) by aranzo.netg.se with local-esmtp (Exim 4.50) id 1GENbg-0006K3-7E; Sat, 19 Aug 2006 11:59:08 +0200 Date: Sat, 19 Aug 2006 11:59:08 +0200 (CEST) From: arsi@aranzo.netg.se To: Bruno Wolff III cc: pgsql-admin@postgresql.org Subject: Re: Restoring database question.. In-Reply-To: <20060818195221.GA1502@wolff.to> Message-ID: References: <20060818195221.GA1502@wolff.to> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.961 tagged_above=0 required=5 tests=NO_REAL_NAME X-Spam-Level: X-Archive-Number: 200608/230 X-Sequence-Number: 22773 Hi there, >> My question is as follows, is it possible to simply copy the data files >> to their correct location and getting access to the databases as they >> looked at the time of the hacking attempt? >> I should have the exact same setup before the hack as after, no version >> changes or anything. > > If the database was running when the files were backed up, then just copying > them over is very unlikely to work. > The thing is, there was no backup. The machine was hacked and someone did an 'rm -rf *' on / and I don't know if it removed the postgres program first or the datafiles first, nor do I know if that matters. Also, the main data files also exist (I copied the data folder to its correct place as the restoring technique), I can select from the actual data, only the pg_* tables seem to be missing since I can't dump the database or do \d on any tables. Archie