Recover data from postgres files

PostgreSQL is the database server used to store information. Do you have a question or are you having problem with PostgreSQL? If so, post them here.

Moderator: Moderators

Recover data from postgres files

Postby agentreno » Sat Aug 03, 2013 10:34 am

Hello all

Has anyone had experience recovering a postgres database from the data folder? Google turned up a few hits which suggest installing the same version that created the data, stepping the service, replacing the data folder with the backed up folder, and restarting the service. That didn't work out for me as the service won't restart once I've altered it's filesystem.

Would be grateful to hear from anyone who has attempted something like this, you can bet ill be using pgdump or PT db export features from now on!

Karl
agentreno
 
Posts: 4
Joined: Sun Jan 06, 2013 7:24 pm

Re: Recover data from postgres files

Postby WhiteRider » Sat Aug 03, 2013 12:20 pm

I believe you'll need to install PostgreSQL after you copy the data folder into place, rather than before, but as long as the whole data folder is intact that should work.
WhiteRider
Moderator
 
Posts: 54017
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 18 guests

cron