Re: Postrgres data restoration problem

From: Sai Hertz And Control Systems <sank89(at)sancharnet(dot)in>
To: Jim Cochrane <jtc(at)dim(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Postrgres data restoration problem
Date: 2003-12-05 11:46:00
Message-ID: 3FD06FF8.1010107@sancharnet.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ashok Chauhan 2003-12-05 11:52:55 TCP/IP connection
Previous Message Alan Graham 2003-12-05 09:47:30 Re: Trigger to call an external program