pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: arsi@aranzo.netg.se
To: pgsql-admin@postgresql.org
Subject: Restoring database question..
Date: Sat, 12 Aug 2006 19:58:52 +0200 (CEST)
Message-ID: <Pine.LNX.4.62.0608121958150.948@aranzo.netg.se> (raw)
In-Reply-To: <Pine.LNX.4.62.0608121331510.473@aranzo.netg.se>
References: <Pine.LNX.4.62.0608121331510.473@aranzo.netg.se>


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





view thread (3+ messages)  latest in thread

Message-ID: <Pine.LNX.4.62.0608121958150.948@aranzo.netg.se>
Permalink:  ../Pine.LNX.4.62.0608121958150.948@aranzo.netg.se/
Also on:    postgresql.org/message-id/Pine.LNX.4.62.0608121958150.948@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
  Subject: Re: Restoring database question..
  In-Reply-To: <Pine.LNX.4.62.0608121958150.948@aranzo.netg.se>
  References: <Pine.LNX.4.62.0608121331510.473@aranzo.netg.se> <Pine.LNX.4.62.0608121958150.948@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