Recover ancient versions of postgresql I was running different postgresql versions. And accidentally they were removed. they contained several databases and I want to recover them. I'm wondering if there'a a command line in linux that allows me to recover lost data.

Your help would be so precious!

Thank you in advance
Take a backup of the entire data directory for each.
Reinstall the version of postgresql you need
Point its data directory at your existing one


If you are running a packaged version of postgresql then there might be nothing to do for 3