Backup and Restore Strategy

hello all, I'm new here

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

For restoring, docker compose down > pull > create > start immich_postgress, run the gunzip, sed, docker exec commands on the desired *.sql.gz archive, then docker compose up. Lastly, rsync in the oposite direction the whole ~/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).
Was this page helpful?