Architecture diagrams always look tidy on paper. Reality shows up when you start uploading thousands of family videos and actually depend on your home server every day.
In this final post, I'll share some of the problems and improvements that came out of daily use: a 3.5-hour GPU transcoding freeze, setting up photo synchronization for me and my family, building a zero-cloud backup script using only built-in Windows tools, and running a live Vaultwarden restore drill to make sure the backups actually work.
Let's get into it.
1. The 3.5-Hour Video Transcoding Freeze (and the One-Setting Fix)
During our initial bulk upload of phone videos into Immich (CT 121), the video conversion queue suddenly stopped making progress.
The confusing part was that everything looked healthy on the surface.
ops-health-check showed all four Immich containers as Up (healthy). The container still had around 3 GB of free RAM, and Proxmox dmesg showed no OOM kills or GPU hangs.
So, what was happening?
I checked docker logs and inspected the running processes directly on CT 121. That's where I found the culprit.
- Every previous video had finished transcoding in 2 to 10 seconds using Intel Quick Sync (
QSV). - Then, at 6:46 PM, one
.movfile triggered a problem with the 7th-gen integrated graphics (HD 630 / Kaby Lake). - The
ffmpegprocess runningh264_qsvandscale_qsvhad deadlocked at 0.0% CPU usage.
It wasn't crashing. It wasn't consuming resources. It was simply stuck, quietly blocking the entire video conversion queue for three and a half hours.
The fix, without restarting Docker
I didn't want to restart the entire Immich stack just to deal with one stuck worker.
Here's what I did:
-
Unstick the worker. I ran
kill -9 <ffmpeg-pid>onCT 121. This immediately released the queue without restarting Docker, PostgreSQL, or the Web UI. - Switch hardware acceleration from QSV to VAAPI. In the Immich Admin UI, under Settings > Video Transcoding Settings, I switched the hardware acceleration option to VAAPI.
-
Update the documentation. I updated
kb/services/zone2-immich-121.mdand the corresponding Ansible role message so future deployments would use VAAPI by default.
VAAPI still uses the same /dev/dri/renderD128 hardware device, so I could keep hardware acceleration without relying on the QSV path that was causing trouble on this machine.
One thing I learned here: a healthy container doesn't necessarily mean a healthy application. Sometimes you have to look one layer deeper.
2. Making It Painless for Us: Immich, Vaultwarden, and Tailscale
A self-hosted cloud only makes sense as a replacement for commercial services if the people using it don't have to fight with it.
I didn't build this just for myself. My family needs to be able to back up photos, browse albums, and access our shared services without worrying about how the infrastructure works.
Setting up separate Immich accounts
I wanted my family to have separate accounts while still having a shared photo experience.
The setup is fairly straightforward:
- One account per person. I keep the Admin account for maintenance and created a regular User account for my family.
-
Configure Storage Labels before the first upload. I assigned labels such as
adminand a readable label for my family. This keeps original files organized on disk under paths likelibrary/<label>/2026/11-November/...instead of relying on random UUID folders. - Enable Partner Sharing and Shared Albums. Partner Sharing with "Show in timeline" enabled gives us an effortless shared timeline while keeping account ownership separate. For family trips and events, Shared Albums with Editor access work well.
-
Back up the metadata. User accounts, face detection, named People, Smart Search embeddings, Partner Sharing, albums, and UI settings are stored in Immich's PostgreSQL database. That database is included in the nightly Track 1
resticbackup.
This last point is important. Backing up the original photos alone isn't enough if you also want to preserve the organization and experience you've built around them.
Mobile backups without self-signed SSL headaches
For remote access, I use a single Tailscale subnet router (CT 132).
It advertises 192.168.100.0/24, with key expiry disabled, and uses Split DNS to resolve:
haytham.internal -> 192.168.100.30 (Pi-hole)
This gives our devices access to the home network without opening ports on the home router.
For browser access on laptops and desktops, Nginx Proxy Manager (CT 131) handles HTTPS using a wildcard self-signed certificate (*.haytham.internal). The certificate has an 825-day validity period for Apple compatibility.
After locking Vaultwarden signups back down with SIGNUPS_ALLOWED="false", I also stored all three certificate files (.crt, .key, and .cnf) as encrypted attachments inside Vaultwarden.
There's one mobile-specific detail worth mentioning.
Instead of pointing the Immich mobile apps to the internal HTTPS hostname, I configured them to use:
http://192.168.100.21:2283
The connection goes through Tailscale. When we're connected to home Wi-Fi, uploads travel directly over the local network. When we're on cellular, Tailscale provides WireGuard end-to-end encryption.
This also avoids the iOS self-signed certificate friction that can get in the way of background photo backups.
The result is pretty simple: my family and I can use Immich without having to think about certificates, reverse proxies, or network routing.
3. Zero-Cloud, Zero-Samba Backups Using Only Built-In Windows Tools
I wanted our backups to exist on more than one physical drive.
The setup uses the Proxmox 1 TB SSD as the primary storage, with copies pulled to my local PC and an external USB drive.
The requirements were:
- No cloud storage.
- No Samba shares.
- No dependency on the disposable
haytham-ctlcontrol VM. - A backup copy that remains available even if the homelab itself becomes inaccessible.
Here's how the two backup tracks work:
Proxmox Host (.2)
├── Track 1 (Daily 03:00)
│ SQLite .backup + pg_dumpall
│ └── Encrypted restic repository (7d / 4w)
│
├── Track 1b (Sun 03:30)
│ Proxmox vzdump snapshots (zstd)
│
├── Track 1 Pull (atomic swap)
│ └──► Local PC / External USB
│ Dedicated break-glass SSH key
│ pull-homelab-backups.bat
│ Windows ssh.exe + tar.exe
│
└── Track 2 Incremental Pull (no deletes)
CT 121 Immich (.21)
└── library/, upload/, profile/
└──► Local PC / External USB
Track 1 pulls the encrypted backup repository and Proxmox snapshots. Track 2 separately pulls the original Immich library data.
I use a simple Windows batch script, scripts/pull-homelab-backups.bat, to handle the transfers. It relies on Windows' built-in SSH and TAR tools, so I don't need WSL, Samba shares, or additional software just to retrieve my backups.
I also made Track 2 incremental. It checks relative paths and file sizes, skipping files that have already been backed up.
One deliberate decision: Track 2 never propagates deletions.
If I accidentally delete something from Immich, that deletion won't wipe the corresponding file from my PC backup.
I want the local copy to protect me from mistakes, not reproduce them.
4. Proving It Works: A Live Vaultwarden Restore Drill
An untested backup is just a wish.
I didn't want to call the homelab finished simply because restic was running every night. I wanted to know whether I could actually recover something from it.
So I ran a live restore drill on Vaultwarden (CT 120).
Here's what I did:
-
Create a fresh backup. I triggered
homelab-backup.serviceimmediately after creating our Vaultwarden account and uploading the SSL certificate attachments. Then I ranrestic check, which returnedno errors were foundacross all snapshots. -
Extract the snapshot. I extracted the latest snapshot into
/tmp/vw-restoreon Proxmox and verified that it contained bothdb.sqlite3and all three encrypted attachment blobs insidevw-files.tar.gz. -
Restore the database. I stopped the live Vaultwarden container and removed the stale SQLite WAL files (
db.sqlite3-walanddb.sqlite3-shm) so old WAL frames wouldn't conflict with the restored database. Then I copied the restoreddb.sqlite3into/opt/vaultwarden/vw-data/, started the container again, and removed/tmp/vw-restore. -
Verify the application. I logged back into
https://vaultwarden.haytham.internaland successfully downloaded the SSL certificate attachments.
This was a small test, but it proved something important: the backup wasn't just a collection of files sitting on disk. I could actually restore the application and access its data again.
Keeping recovery secrets outside the homelab
There's one more detail worth mentioning.
If the Proxmox SSD dies completely, I don't want to discover that the credentials needed to recover everything are stored inside the system I'm trying to recover.
To avoid that circular dependency, I keep a small set of offline recovery secrets outside the homelab.
They are stored on a printed emergency sheet and in KeePassXC on an encrypted USB drive:
- Vaultwarden Master Password
vault_restic_password- Infisical
ENCRYPTION_KEYandAUTH_SECRET
These are the credentials I need to avoid locking myself out during a full recovery.
Looking Back
This entire project started because I wanted to stop paying a monthly bill for cloud photo storage.
Somewhere along the way, that small annoyance turned into an 8 GB mini PC running eight daily services, organized into security zones, documented in a RAG-ready Knowledge Base, managed with Terraform and Ansible, and supported by an AI agent isolated behind a four-layer security architecture.
It also gave us something more practical than another infrastructure project: a private family cloud that we can actually use every day.
There are still things I want to improve.
My next upgrade will probably be moving from 8 GB to 16 GB of RAM. After that, I plan to move the router's primary DNS to Pi-hole and enable Home Assistant OS and shared PostgreSQL in Terraform.
But for now, the system does what I originally wanted it to do.
Our photos are backed up locally, our passwords are self-hosted, and I have a recovery process that I've actually tested.
No monthly cloud storage bill required.
Full GitHub repository: github.com/farhanhl-ds/zero-trust-homelab

Top comments (0)