7

So, I had to shutdown my mini pc home server (on NIXOS) so that it could be used for something else. Most of my data is in a pair of external hdds in a RAID configuration. However the Postgres database was in the boot drive. I still have it, but it refuses to boot anywhere else (tried some old spare laptops). How can I recover it?

top 3 comments
sorted by: hot top controversial new old
[-] 2xsaiko@discuss.tchncs.de 5 points 3 days ago

The database store is in /var/lib/postgres. You can just connect that disk somewhere else and start the database using the same (important!) major release of Postgres. I think the major version number is in the folder name. Then do whatever from there.

[-] SheeEttin@lemmy.zip 1 points 3 days ago

Boot live media, mount the drive, copy it off.

[-] just_another_person@lemmy.world 1 points 3 days ago

Plug it into a machine, mount the drive, then copy the data off of it. You can get an external USB drive adapter for cheap if needed.

this post was submitted on 29 Jun 2025
7 points (100.0% liked)

Self Hosted - Self-hosting your services.

12522 readers
6 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules

Important

Cross-posting

If you see a rule-breaker please DM the mods!

founded 4 years ago
MODERATORS