How do I dump postgresql database from recovery ISO?

March 24, 2014 1.2k views
I have a postgresql database on a droplet that does not start and I am logged in with the recovery ISO. How do I get my postgresql database data back? (I thought I should somehow dump the old database on /mnt.)
1 Answer
Try installing postgres on a new droplet and then (while it's not running), replacing the data directory with the data directory from the old droplet. Does that work?
Have another answer? Share your knowledge.