Immich backup and restore checklist
How to restore Immich from a backup, as a checklist you can print: what to back up (the whole upload folder and the automatic database dumps), the restore steps on a fresh install, the gotchas that lose photos, and how to check the restore worked.
Written for Immich v3.4.1, checked against the official docs on 2026-11-12. Always restore the same version you backed up.
Open this in Lab Lifeboat Quarterly restore-drill reminder (.ics)
Lab Lifeboat fills in your own paths, hosts and backup locations, adds your other apps in restore order, and works offline. Free, no account, nothing leaves your browser. Example paths below (under /opt and /mnt) are placeholders: use yours. Print this page with your browser’s Print command.
What to back up
- A backup of the whole UPLOAD_LOCATION (/mnt/photos/immich). It holds the backups, encoded-video, library, profile, thumbs and upload folders.
- The daily Postgres dumps in /mnt/photos/immich/backups (Immich keeps the last 14 by default). A dump alone is not a backup of your photos.
- Your docker-compose.yml and .env for Immich v3.4.1. Restore with the same version as the backup: a different version may need migrations.
Restore onto a fresh install
- Install Docker and Docker Compose on the new host.
- Put docker-compose.yml and .env back in /opt/immich. Check IMMICH_VERSION is v3.4.1, and that UPLOAD_LOCATION and DB_DATA_LOCATION point where you want them.
- Use a new, empty DB_DATA_LOCATION (/opt/immich/postgres). Do not copy the old Postgres data folder; the dump restores the database.
- Copy the backed-up backups, encoded-video, library, profile, thumbs and upload folders into /mnt/photos/immich.
cd /opt/immich docker compose up -d - Open http://<HOST>:2283. On the welcome screen click Restore from backup. Review the folder integrity checks, then click Next.
- Pick a backup from the list, or upload a .sql.gz dump, then click Restore. Immich creates a restore point and rolls back automatically if the restore fails.
Immich still runs, only the database is broken
- Go to Administration > Maintenance > Restore database backup and click Restore next to the backup you want. This replaces the current database (a restore point is created first).
Gotchas
- A database dump holds only metadata, not your photos and videos. You need the dump and a copy of the files in UPLOAD_LOCATION.
- Start with a new, empty DB_DATA_LOCATION. Do not copy the old Postgres data folder; the dump restores the database.
docker compose down -vdeletes all Immich data. The command-line restore in the Immich docs starts with it, so use that route only on a fresh or test machine.- Restore onto the same Immich version you backed up. Immich tries to run migrations for a different version, but the same version is the safe path.
- If you used an external library, mount it in the new docker-compose.yml with the same structure as before.
- If you back up without stopping immich-server, back up the database first and the files second, so the database never points at files that are missing from the backup.
- Since v3.4.0, Immich compresses database dumps with pigz when it is installed. The output is still standard gzip, so restoring a dump works the same as before.
- The v3.4.1 docker-compose.yml is identical to v3.4.0. Both differ from v3.3.6 (a new MACHINE_LEARNING_MODEL_REVISION setting and a new Valkey image digest). Restore with the compose file from the release you backed up.
- The backup and restore process changed in Immich v2.5.0. For an older backup, use the Immich docs version selector for its manual restore steps.
How to test your Immich backup (restore drill)
A backup you have never restored is a guess. Run this drill on a spare machine every few months; it never touches your live server.
- Use a spare machine or VM, never the live server. Set
IMMICH_VERSIONin.envto the exact version you run (notrelease) and use the same docker-compose.yml. - Check the newest database dump is readable before you copy it:
gunzip -ton the newest.sql.gzin UPLOAD_LOCATION/backups prints nothing when the file is intact. - Copy the upload folders from the backup (not from the live server) into a new UPLOAD_LOCATION on the test machine, and point DB_DATA_LOCATION at a new, empty folder.
- Start the stack and restore the dump from the welcome screen (Restore from backup), as in the restore steps above.
- Keep the test copy private: don’t add it to your reverse proxy or DNS, and don’t point the phone app’s backup at it.
- Compare with the live server: photo and video counts under Administration > Server Stats, a few old photos and one video opened at full size, one album and one person.
- Write down the date and how long it took, then remove the test stack and its copied folders on the test machine only.
Check the restore worked
- Log in, compare the asset count with what you expect, open some old originals, play a video, and check albums and faces.
- If thumbs or encoded-video were not in the backup, rerun the thumbnail and transcoding jobs.
- If Immich sits behind Caddy, restore Caddy next and keep Immich on its own subdomain.
- Write down today's date as the last restore test.
Where Immich fits in a full homelab restore
Restore the hypervisor first, then the password manager (it holds the other secrets), then the reverse proxy, then the apps:
FAQ
How do I restore Immich from a backup?
Install the same Immich version with your old docker-compose.yml and .env, copy the backups, encoded-video, library, profile, thumbs and upload folders into the new UPLOAD_LOCATION, start the stack, then click Restore from backup on the welcome screen and pick a database dump.
Is the Immich database dump enough as a backup?
No. The dump holds metadata only. Immich does not scan the library folder to rebuild it, so you need both the database dump and the files in UPLOAD_LOCATION, ideally in a 3-2-1 setup.
Where does Immich keep its automatic database backups?
In UPLOAD_LOCATION/backups. By default Immich creates one daily at 2:00 AM and keeps the last 14; change this under Administration > Settings > Database Dump Settings.
Can I restore just the Immich database while Immich still runs?
Yes. Go to Administration > Maintenance > Restore database backup and click Restore next to the backup. Immich makes a restore point first and rolls back if the restore fails.
How do I test an Immich backup without touching my live server?
Restore it onto a spare machine or VM running the same Immich version, from a copy of the backup files and an empty database folder. Keep it off your reverse proxy and phone backup, compare the photo counts in Server Stats with the live server, then delete the test copy.
Related guides
- Immich backup and restore (full guide)
- Immich offsite backup with restic
- Immich Docker Compose setup
- Immich external libraries
- Immich reverse proxy with Caddy
Sources
- Immich docs: Backup and Restore (checked 2026-11-12)
- Immich v3.4.1 release notes (checked 2026-11-12)
- Immich PR #32806: pigz database backups (still standard gzip) (checked 2026-11-12)
Part of Lab Lifeboat, the free offline homelab disaster recovery planner from HomelabWise. How we research

