recovering databases

Started by Yvon Thoravalover 13 years ago3 messagesgeneral
Jump to latest
#1Yvon Thoraval
yvon.thoraval@gmail.com

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

#2Laurenz Albe
laurenz.albe@cybertec.at
In reply to: Yvon Thoraval (#1)
Re: recovering databases

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

#3Yvon Thoraval
yvon.thoraval@gmail.com
In reply to: Laurenz Albe (#2)
Re: recovering databases

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