From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Drotos <drdani@mazsola.iit.uni-miskolc.hu>
Cc: pgsql-admin@postgresql.org
Subject: Re: recover of data directory
Date: Mon, 29 May 2006 10:58:16 -0400
Message-ID: <14037.1148914696@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.61.0605291203100.26742@mazsola.iit.uni-miskolc.hu>
References: <20060510080835.C087C9F931D@postgresql.org>
<Pine.LNX.4.61.0605291203100.26742@mazsola.iit.uni-miskolc.hu>
Daniel Drotos <drdani@mazsola.iit.uni-miskolc.hu> writes:
> During machine maintenance I've made 'rm -rf *' on postgres data
> directory by a (very stupid) mistake. Postmaster was not running that
> time.
> Using e2undel I dumped out contents of deleted files (3728 files have
> been deleted by that command). Because of "rm -r", sizes of recovered
> directory files are 0, so I have no filenames and directory structure.
> Is there any chance of recover data directory if only dumped file
> contents are available?
If you could identify which file is which, you could manually
reconstruct the directories, but I'm afraid the odds of doing that
correctly with so many files are nil. Time to get out your last
backup.
regards, tom lane
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: tgl@sss.pgh.pa.us, drdani@mazsola.iit.uni-miskolc.hu
Subject: Re: recover of data directory
In-Reply-To: <14037.1148914696@sss.pgh.pa.us>
References: <20060510080835.C087C9F931D@postgresql.org> <Pine.LNX.4.61.0605291203100.26742@mazsola.iit.uni-miskolc.hu> <14037.1148914696@sss.pgh.pa.us>
* 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