[Feature] Auto restore database #6323
Replies: 4 comments 6 replies
-
Alternatively you could use external libraries, which can be easy rescaned. There is also a scheduled task to rescan them. There are some requests to add some of the maintainance features also to the default library. Another savety feature is an automated database update, as described in the docs. |
Beta Was this translation helpful? Give feedback.
-
Doing this sort of thing automatically is bound to hide issues that need to be addressed by the admin. The intent is indeed for the repair page to be used for these sorts of things, that just hasn't been fully implemented yet. |
Beta Was this translation helpful? Give feedback.
-
I think, immich should care about photos, and backup solutions should care about backups, snapshots and so on. The same with photos. New photos are on my smartphone, and they sync to my NAS. One more copy in "default quality" is on Google Photos, another on Amazon. Maximum I can lose assets for one day, if I assets upload happens only when I am in Wifi. This happened once, when I went with my smartphone into water and could not repair. And it is always possible to save assets a second time and then to remove duplicates. Duplicate detection is well possible using different software. I don't need to manually search 10 k photos to find detect duplicates. But if someone will implement and maintain additions backup solutions into immich... |
Beta Was this translation helpful? Give feedback.
-
Duplicate of #5441 , we won't be automatically dropping/fixing the database as this is a sign of serious issues with the system |
Beta Was this translation helpful? Give feedback.
-
The feature
One major issue I'm seeing with the current implementation is that should the server crash to where the database is not recoverable, rebuilding the server puts everything in an 'awkward' state.
Example: Currently, I'm running the server itself on a Raspberry Pi. This includes all of the docker containers. One exception is that my upload location is stored on a NAS, so that the important part, the photos, are on a RAID and where I already have weekly off-site backups configured. I also have daily backups of all of my Pis configured as well, but if the server crashes before the database, etc.. can be backed up I end up with several orphaned photos.
Thus would it be possible, to have a job run on boot, that checks each user's library folder and if it finds any untracked photos, that it can automatically move them back to the upload directory to be processed again?
As it stands though, unless I'm missing something, it seems best to try and backup all of the docker volumes after EVERY photo is uploaded and processed.
Maybe there is already an option in the repair section on the website, but I wasn't able to get anything there to work.
Some alternatives that I've tried but none seem ideal:
Platform
Beta Was this translation helpful? Give feedback.
All reactions