© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•8mo ago•
5 replies
RailwayFan

Backup and Restore Strategy

hello all, I'm new here

quick question about backup / restore: is it a good strategy to periodically (
cron
cron
) run a script which brings all the containers down, then "rsync" to a local/remote destination the whole
~/library
~/library
directory which includes the 2:00 AM daily backups?

For restoring,
docker compose down > pull > create > start immich_postgress
docker compose down > pull > create > start immich_postgress
, run the
gunzip
gunzip
,
sed
sed
,
docker exec
docker exec
commands on the desired
*.sql.gz
*.sql.gz
archive, then
docker compose up
docker compose up
. Lastly,
rsync
rsync
in the oposite direction the whole
~/library
~/library
directory.

I tested this, but somehow the reported storage space in the Immich web UI is significantly different: "98.8 GiB of 936.8 GiB used" on the test machine vs. "131.2 GiB of 467.3 GiB used" on the "production" server.

Later edit: the difference in storage may be because there are more containers with more space used on the production server than on the test machine; the "Server Stats" shows the same for photos (18128), videos (344), and storage space (77 GiB).
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Backup and restore
ImmichIImmich / help-desk-support
12mo ago
restore backup
ImmichIImmich / help-desk-support
4mo ago
Backup and Restore scripts issue
ImmichIImmich / help-desk-support
9mo ago
Restore borg backup
ImmichIImmich / help-desk-support
6mo ago