Recover databases from raw files (only exists the base directory)

Started by Carlos Martinezover 6 years ago2 messagesgeneral
Jump to latest
#1Carlos Martinez
camarti@gmail.com

Hi.

I have been contacted for this interesting issue: on a standalone
postgresql 9.4 server someone deleted all PostgreSQL files and
directories except the base directory and its content
(/var/lib/pgsql/9.4-base/data/base).

So, the question is: there is any chance/procedure to recover the databases?

As usual, the last backup has "a few" weeks. So, this dump can be used to
recover the recent data?

Thanks a lot for you help.

Carlos Martínez.

#2Laurenz Albe
laurenz.albe@cybertec.at
In reply to: Carlos Martinez (#1)
Re: Recover databases from raw files (only exists the base directory)

Carlos Martinez wrote:

I have been contacted for this interesting issue: on a standalone postgresql 9.4
server someone deleted all PostgreSQL files and directories except the base directory
and its content (/var/lib/pgsql/9.4-base/data/base).

So, the question is: there is any chance/procedure to recover the databases?

As usual, the last backup has "a few" weeks. So, this dump can be used to recover the recent data?

I'd cut the losses and take the backup.

You'd need a specialist to recover anything there.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com