Backups

I've been reading the documentation and experimenting a bit. I'm still a little unsure how to best go about this though. My uncertainty is basically, what happens if a few photos are uploaded to immich after the last database dump? Are those images "lost"? Is there any logic in Immich to detect images on the file path that aren't known to the database?

I see in the example script that they trigger a database dump as part of the script. Thing is, what if a user is currently uploading photos from their phone while this backup script is running? In theory, some photos could make it onto the file system after the database dump is done, even when it happens straight after.

I'm currently wondering if the right thing to do would be to simply take the docker container down, then perform a backup, and then bring it back up again after. Is this the only way to ensure a 100% consistent backup? Is it correct, that I don't have to worry about the database-dump and can instead simply copy all the folders if immich is offline when I perform the backup task?
Was this page helpful?