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 E0A879FB250 for ; Sat, 12 Aug 2006 14:47:55 -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 35196-05 for ; Sat, 12 Aug 2006 14:47:53 -0300 (ADT) X-Greylist: delayed 06:24:41.276802 by SQLgrey- Received: from aranzo.netg.se (aranzo.netg.se [212.91.141.40]) by postgresql.org (Postfix) with ESMTP id 148069FB24F for ; Sat, 12 Aug 2006 14:47:53 -0300 (ADT) Received: from arsi (helo=localhost) by aranzo.netg.se with local-esmtp (Exim 4.50) id 1GBxl6-0000Fb-VO for pgsql-admin@postgresql.org; Sat, 12 Aug 2006 19:58:52 +0200 Date: Sat, 12 Aug 2006 19:58:52 +0200 (CEST) From: arsi@aranzo.netg.se To: pgsql-admin@postgresql.org Subject: Restoring database question.. In-Reply-To: Message-ID: References: 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=AWL, NO_REAL_NAME X-Spam-Level: X-Archive-Number: 200608/153 X-Sequence-Number: 22696 Hi all, I have a problem. My server got hacked and someone did an rm -rf * on the /home and /var folders. The backups to my database were not as fresh as they should be but I have been able to recover all the files that existed before the rm from the old harddrive, including the files located in the data folder for postgres. 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. Or do I simply have to count my losses and restore from an old backup?? I have a Debian Linux (stable) and the Postgres version is 7.4. Thanks in advance, Archie