Thread: recovering databases

recovering databases

From
Yvon Thoraval
Date:
on my computer I had a disk probleme, then i had to reinstall the system (Xubuntu 12.04).
I've backuped some parts of the disk, namely /etc, /var and /home.
I wonder if I'm able to recover my past databases in the /var/lib/postgresql/9.1/ backup.
If yes, how ?

--
Yvon


Re: recovering databases

From
"Albe Laurenz"
Date:
Yvon Thoraval wrote:
> on my computer I had a disk probleme, then i had to reinstall the system (Xubuntu 12.04).
> I've backuped some parts of the disk, namely /etc, /var and /home.
> I wonder if I'm able to recover my past databases in the /var/lib/postgresql/9.1/ backup.
> If yes, how ?

If you have the complete data directory, there should be
no problem.
Install PostgreSQL 9.1 and start the server against the
data directory.

Yours,
Laurenz Albe

Re: recovering databases

From
Yvon Thoraval
Date:


2012/9/4 Albe Laurenz <laurenz.albe@wien.gv.at>
Yvon Thoraval wrote:
> on my computer I had a disk probleme, then i had to reinstall the system (Xubuntu 12.04).
> I've backuped some parts of the disk, namely /etc, /var and /home.
> I wonder if I'm able to recover my past databases in the /var/lib/postgresql/9.1/ backup.
> If yes, how ?

If you have the complete data directory, there should be
no problem.
Install PostgreSQL 9.1 and start the server against the
data directory.

Yours,
Laurenz Albe


fine, thanks

--
Yvon