Self-hosting a photo library in your home lab: storage and backup choices
Which photo app should a home lab run. Immich or PhotoPrism? The direct answer is that the app question comes second. The first decision is the library model: whether the software takes over organizing the photos, or indexes the folders already on disk. That choice decides whether an existing collection survives the move intact, and it cannot be reversed cheaply once tens of thousands of photos have been reorganized. Storage sizing comes next, then the app, then the backup design, in that order, because each step constrains the one after it.
The first decision: upload-and-organize or index-in-place
Immich is built around an upload-and-organize model rather than indexing what is already there. Photos flow in, chiefly from phones, and Immich manages the library it builds. PhotoPrism takes the opposite position: it indexes an existing library in place, leaving the folder structure as it finds it. The sourced comparison frames the choice plainly: pick Immich for automatic phone backup, and PhotoPrism for curating an existing collection.
So the deciding question is about the photos, not the software. A household whose library is mostly tomorrow's phone photos, with the past scattered across old drives, fits the upload-and-organize model: the new stream matters more than the archive's current shape. A household with a decade of folders already organized by year and event fits index-in-place: the organization is itself information, and software that reorganizes it destroys something real. Neither answer is a verdict on the other app. It is a statement about which asset, the future stream or the existing structure, the lab is protecting.
Immich versus PhotoPrism versus Nextcloud Photos
| Immich | PhotoPrism | Nextcloud Photos | |
|---|---|---|---|
| Library model | Upload-and-organize | Indexes existing libraries in place | Not covered in the sourced comparisons |
| Minimum RAM (comparison figures) | 6 GB | 4 GB basic, 8 GB or more recommended | 4 GB |
| Phone upload path | Native iOS and Android mobile backup | WebDAV sync, not a native upload app | Not covered in the sourced comparisons |
| Best fit (sourced guidance) | Automatic phone backup; the family Google Photos replacement pattern | Curating an existing collection | The already-running-Nextcloud path |
One spec disagreement is worth naming, because RAM is the number a small NAS runs out of first. The comparison table above uses one source's minimums: Immich at 6 GB. A second source advises allocating 4+ GB of RAM for a comfortable Immich experience and describes Immich as resource-hungry at that level. Read together, the honest planning figure is not the smaller one: budget 6 GB for Immich if the host is shared with other services, and expect the 4 GB territory to feel tight. PhotoPrism is the lighter option on resources in both sources, with the 8 GB recommendation applying once a basic install grows.
Size the storage: library, database, and growth
Storage sizing needs three numbers, all measurable from the library itself rather than from a guide. First, the current library size on disk. Second, the monthly growth: compare the library's size now against a backup from some months back, or measure one month of new phone photos and videos directly. Third, the working set the apps add on top of the originals, thumbnails, previews, and the database that holds metadata, albums, and face data. Originals live on bulk disk happily. The database belongs on SSD: it is small next to the library, it is read constantly, and it is the component that decides whether browsing feels instant or sluggish.
A worked example, with round numbers standing in for the measurements above, replace each one with the figure from your own library:
| Line | Example input | Arithmetic |
|---|---|---|
| Current library | 400 GB | Measured on disk |
| Monthly growth | 8 GB per month | Measured from recent phone backup |
| Three years of growth | — | 8 GB × 36 months = 288 GB |
| Planning total for originals | — | 400 + 288 = 688 GB, before thumbnails and database |
The point of the calculation is the shape, not the example's total. Video dominates growth whenever phones record it, so a growth figure measured from a photo-only month understates the plan. Measure across a stretch that includes the household's normal video habits, and re-run the arithmetic yearly, a library that outgrows its disk does so gradually, then suddenly, at the next phone upgrade.
Where things live: SSD for the working set, bulk disk for originals
The layout follows from the sizing. Originals, the uploaded library itself, go on the NAS's bulk storage, where capacity per dollar is best and speed barely matters. The PostgreSQL database goes on SSD, along with the thumbnail and preview working set the app generates. That split is also how the Immich backup guidance divides the world: what must be protected is the photo library (the upload location) plus the PostgreSQL database of metadata, albums, and faces, while the model cache is optional, it can be rebuilt, so it earns no backup space. A host too small for the split still works; it just gives up the responsiveness the SSD provides, which is a comfort trade, not a correctness one.
Backup that can actually restore: files plus database
The most consequential sentence in the sourced material is short: files alone are not a restore. Immich's metadata lives in its PostgreSQL database, so a backup of the photo files without the database returns the pixels and loses the library, the albums, the organization, the face data that made the collection navigable. The backup must snapshot Postgres together with the file storage.
The documented 3-2-1 pattern for a photo library runs as follows:
- Keep the live library on the NAS, copy one, the working copy everything reads from.
- Dump the database on a schedule. The documented method pipes a full database dump (
pg_dumpall) into a dated, compressed file; the example retention is 7 days of dumps. - Sync nightly to an external USB drive, copy two, local and separate from the NAS, carrying both the photo files and the dated database dumps.
- Take a quarterly off-site copy, copy three, stored away from the house, refreshed four times a year.
- Before enabling mobile backup for the whole family, verify deduplication on a test album. One small album, uploaded and checked, proves the pipeline handles duplicates as expected before every phone in the house joins it.
What success looks like
A backup is a claim; a restore is the evidence. Success for this design has a specific shape: pick one test album, restore the files and a database dump into an empty test instance, and open it. The photos appear with their album, their metadata, and their face groupings, not as a flat folder of images. Searching and browsing feel normal. If the restore returns files without the library structure, the database half of the backup is missing or stale, and the backup job, however green its status light, is not protecting the thing the household cares about.
The quarterly restore test
The sourced guidance sets the cadence: test restores quarterly, on the same rhythm as the off-site copy. The test is deliberately small, one album, one empty instance, fifteen unhurried minutes, because a test that feels like a project gets skipped, and a skipped test is how a broken backup survives for a year. Each test also re-checks the growth arithmetic from the sizing section: library size then versus now, projected forward again. Storage, app, and backup were chosen in that order; the restore test is the step that keeps all three honest, four times a year, for as long as the library matters.
, Dex Carter, Tech Writer