The backup doc from Immich states that one should use Postgres’ dump functionality to backup the database, as well as copy the upload location.
Is there any counter indication to doing this instead:
- Create a dir
immich
with subdirsdb
andlibrary
- Mount the
db
dir as a volume for the database - Mount the
library
dir as a volume for the upload location - Backup the whole
immich
dir without dumping the Postgres db. (Stop Immich while before doing this)
It’s the way I do all of my service backups. One separate DB container per docker stack so nothing else is in there, all the data in one folder, and off we go at 1AM.
Yeah, also I don’t run the
latest
version of the app in order to avoid breakage. I pin some tag so the app version so there shouldn’t be a significant version mismatch during restore. I think @Esquero’s suggestion to also dump the db just in case makes sense too. I’m gonna be writing a backup script / systemd unit anyways, might as well as a couple of lines for that.