Arjun Mehta · Oct 24 · 5 min read

I moved 40,000 photos off the cloud in one afternoon

I was paying for 200 GB of cloud photos that I only ever look at on my phone. This weekend I moved everything to a small server at home running Immich, an open-source Google Photos alternative. Here is exactly what I did.

What you need

  • Done: A mini PC or old laptop with 8 GB of RAM (I used a second-hand Intel N100 box)
  • Done: A 2 TB external SSD for the library
  • Done: Ubuntu Server 24.04 on a USB stick
  • Done: About three hours, mostly waiting for uploads
The whole setup: an N100 mini PC and a 2 TB SSD behind the router.
The whole setup: an N100 mini PC and a 2 TB SSD behind the router.

Steps

  1. Install Ubuntu Server, turn on OpenSSH during setup, and give the box a fixed IP in your router settings.
  2. Install Docker with the official script: curl -fsSL https://get.docker.com | sh
  3. Mount the SSD at /srv/photos and add it to /etc/fstab so it survives a reboot.
  4. Download Immich’s docker-compose.yml and example.env into a folder called immich-app, and rename the second one to .env.
  5. In .env, set UPLOAD_LOCATION=/srv/photos and change DB_PASSWORD to something long.
  6. Start it with docker compose up -d, open http://your-server-ip:2283 and create the admin account.
  7. Install the Immich app on your phone, point it at the server and turn on backup. Leave the phone on charge and Wi-Fi overnight.

What I’d do differently

  • Keep the database on the internal drive, not the SSD. It’s noticeably faster.
  • Set up a second backup on day one. I now run a weekly rsync to a drive at my parents’ place.
  • Use Tailscale instead of opening ports, so the app works away from home without exposing the server.

Total cost was about ₹18,000 for the mini PC and SSD, which pays for itself against the cloud plan in under two years.

Sign up to bookmark

Save notes like this and write your own.

Sign up