34
submitted 6 days ago by [email protected] to c/[email protected]

Fellow self hosting friends, I screwed up. Not only have I deleted Immich's PostgreSQL folder but I also didn't have backups (of the database, of the photos I do).

I've tried to recover the deleted folder but there's not much left even with proper tools. I've checked and the photos are still there, so my question is: Is there a way for immich to rebuild the database with the photos there? Should I start from scratch and re-upload?

you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 2 points 6 days ago

I am aware and actually use this but it appears too restrictive for our needs.

The structure we were already using cannot be recreated. Honestly i could live with the default. But my partner who is less into computers likes to make their own backups on external hard drives and uses shared network drives rather then the immich web viewer.

[-] [email protected] 3 points 6 days ago

So use whatever you were using before and add that as an external library to immich?

https://immich.app/docs/features/libraries

[-] [email protected] 2 points 6 days ago* (last edited 6 days ago)

I am, that works really well actually and it even knows when the same file was moved.

But to add new files to that external library, which is in fact the only main library. We need to dig in immich file structure which at the very least enforces different directories per individual user and also uses those to store some forms of metadata.

We tried sharing a user in the beginning but the app did not seem to like that.

Now its not the biggest deal, just an annoyance. the fix i am currently thinking is to move the immich directory to somewhere hidden and us systemlinks to get all uploads centralized under a single directory for further processing.

this post was submitted on 01 Jun 2025
34 points (92.5% liked)

Selfhosted

46672 readers
528 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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS