Re: Postrgres data restoration problem - Mailing list pgsql-admin

From Sai Hertz And Control Systems
Subject Re: Postrgres data restoration problem
Date
Msg-id 3FD06FF8.1010107@sancharnet.in
Whole thread Raw
In response to Postrgres data restoration problem  (Jim Cochrane <jtc@dim.com>)
Responses Re: Postrgres data restoration problem
List pgsql-admin
Dear Jim Cochrane,

>I'm looking for help restoring old postgres databases on a linux system
>after a reinstall of Redhat (including posgresql).  It's the same version
>of redhat and of postgres I was using before the resinstall, but I've not
>been able to get the database server to see the old databases.
>
>
>
Here we are trying to help

>The old data is stored in the standard postgres format.  (No,
>unfortunately, I did not have a backup.)  The postgres data is located
>on my system under /var/lib/pgsql.  So I tried both creating a
>symbolic link - setting up /var/lib/pgsql/data as a symbolic link to
>/oldpgsqlpath/data, and, when that didn't work, I just copied the old data
>directory to /var/lib/pgsql (that is, it ended up residing in
>/var/lib/pgsql/data), which didn't work either:
>
>
I presume while you were doing the all above said
1. PostgreSQL was stoped while cp etc
2. The new cluster has been  initialise initdb  i..e the original
database and not the copied direcrory namely /var/lib/pgsql

If this help kindly shoot back for more
For next time keep a backup


Regards,
V Kashyap



pgsql-admin by date:

Previous
From: Alan Graham
Date:
Subject: Re: Trigger to call an external program
Next
From: Ashok Chauhan
Date:
Subject: TCP/IP connection