Re: Restoring databases using only data/ dir

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Afra <aa4(at)cse(dot)buffalo(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Restoring databases using only data/ dir
Date: 2002-10-03 19:27:52
Message-ID: 13170.1033673272@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Afra <aa4(at)cse(dot)buffalo(dot)edu> writes:
> We have run into some problems here which stops us from properly backing
> up the databases using pg_dump. We do have a tarred version of the data
> directory (/usr/local/pgsql/data) which contains databases that we need
> to restore.

> I found out that simply replacing the data/ directory does no good. Is
> there another method in which I can restore databases with the data/
> directory?

Restoring the *entire* data directory should work.

It seems to me that there's a great deal you haven't told us; if you
want useful help it's better to err on the side of too much info,
not too little. For starters, what happens when you try to pg_dump?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tino Wildenhain 2002-10-03 19:34:22 Re: [HACKERS] Anyone want to assist with the
Previous Message Jan Wieck 2002-10-03 19:21:06 Re: cluster replication with intermezzo