pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Srinivas Kotapally <ksrinivas@bisil.com>
To: pgsql-admin@postgresql.org
Subject: Using the /var/lib/pgsql/data directory in the absense of a backup for recovery
Date: Tue, 22 Jul 2003 17:47:34 -0400
Message-ID: <003301c3509a$dd3f3a80$3a185f42@BISIL> (raw)

Hello all

I am a newbie PostgreSQL DB admin.  I have the following problem:
1. I have a redhat 8 box which has postgres installed.
2. I have reinstalled postgresql 7.2.1-5 (native postgres installation on
RedHat 7.3) on the redhat 8.0
3. I don't have the database backups from my 7.3 installation - I however
have access to the /var/lib/pgsql/data directory.

My question is... can I use this to recover the database from the 7.3
version.  We got hacked and the earlier system was unusable.

I tired to do an initdb but it would not let me provide the existing data
directory and got the following:

-bash-2.05b$ initdb
The files belonging to this database system will be owned by "postgres".
This use must also own the server process.

initdb: The directory /var/lib/pgsql/data exists but is not empty.
If you want to create a new database system, either remove or empty the
directory /var/lib/pgsql/data or run initdb with an argument other than
/var/lib/pgsql/data.

I tried to do fire up the postmaster process and could not fire up the DB.
I don't get a message the system just returns to the prompt without starting
the database.

Any help would be welcome!!

Thanks

Srinivas




view thread (4+ messages)  latest in thread

Message-ID: <003301c3509a$dd3f3a80$3a185f42@BISIL>
Permalink:  ../003301c3509a$dd3f3a80$3a185f42@BISIL/
Also on:    postgresql.org/message-id/003301c3509a$dd3f3a80$3a185f42@BISIL

 · 

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: ksrinivas@bisil.com
  Subject: Re: Using the /var/lib/pgsql/data directory in the absense of a backup for recovery
  In-Reply-To: <003301c3509a$dd3f3a80$3a185f42@BISIL>
  References: <003301c3509a$dd3f3a80$3a185f42@BISIL>

* 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