pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: arsi@aranzo.netg.se
To: Bruno Wolff III <bruno@wolff.to>
Cc: pgsql-admin@postgresql.org
Subject: Re: Restoring database question..
Date: Sat, 19 Aug 2006 11:59:08 +0200 (CEST)
Message-ID: <Pine.LNX.4.62.0608191152210.24302@aranzo.netg.se> (raw)
In-Reply-To: <20060818195221.GA1502@wolff.to>
References: <Pine.LNX.4.62.0608121331510.473@aranzo.netg.se>
	<Pine.LNX.4.62.0608121958150.948@aranzo.netg.se>
	<20060818195221.GA1502@wolff.to>


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



view thread (3+ messages)

Message-ID: <Pine.LNX.4.62.0608191152210.24302@aranzo.netg.se>
Permalink:  ../Pine.LNX.4.62.0608191152210.24302@aranzo.netg.se/
Also on:    postgresql.org/message-id/Pine.LNX.4.62.0608191152210.24302@aranzo.netg.se

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: arsi@aranzo.netg.se, bruno@wolff.to
  Subject: Re: Restoring database question..
  In-Reply-To: <Pine.LNX.4.62.0608191152210.24302@aranzo.netg.se>
  References: <Pine.LNX.4.62.0608121331510.473@aranzo.netg.se> <Pine.LNX.4.62.0608121958150.948@aranzo.netg.se> <20060818195221.GA1502@wolff.to> <Pine.LNX.4.62.0608191152210.24302@aranzo.netg.se>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox