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

Restore onto a fresh install

  1. Install Docker and Docker Compose on the new host.
  2. 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.
  3. Use a new, empty DB_DATA_LOCATION (/opt/immich/postgres). Do not copy the old Postgres data folder; the dump restores the database.
  4. Copy the backed-up backups, encoded-video, library, profile, thumbs and upload folders into /mnt/photos/immich.
    cd /opt/immich
    docker compose up -d
  5. Open http://<HOST>:2283. On the welcome screen click Restore from backup. Review the folder integrity checks, then click Next.
  6. 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

  1. 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

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.

  1. Use a spare machine or VM, never the live server. Set IMMICH_VERSION in .env to the exact version you run (not release) and use the same docker-compose.yml.
  2. Check the newest database dump is readable before you copy it: gunzip -t on the newest .sql.gz in UPLOAD_LOCATION/backups prints nothing when the file is intact.
  3. 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.
  4. Start the stack and restore the dump from the welcome screen (Restore from backup), as in the restore steps above.
  5. 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.
  6. 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.
  7. 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

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:

  1. Proxmox VE
  2. Vaultwarden
  3. Caddy
  4. Home Assistant
  5. Nextcloud AIO
  6. Immich (this page)
  7. Paperless-ngx
  8. Jellyfin

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

Sources

Part of Lab Lifeboat, the free offline homelab disaster recovery planner from HomelabWise. How we research