← All projects
Completed November 2026

Home server migration to Debian

Moving my small home server off Windows, WSL2 and Hyper-V onto native Debian 13: all the containers and the mail server, with nightly backups, a rollback path and a few lessons.

DebianDockerSelf-hostedBackupMigration

Why

My home server was a small PC running Windows, with Docker inside WSL2 and the mail server inside a Hyper-V virtual machine. It worked, but every layer added something to babysit: Windows updates and forced reboots, a virtual network inside another virtual network, permissions inherited from the Windows file system, a firewall that Docker rewrites. I thought for a while about buying a new machine, then dropped the idea: the problem was the virtualisation, not the power. So the plan was to keep the same hardware and run everything natively on Linux.

What I decided

A written procedure, then the night

Before touching anything I wrote the whole thing as a step-by-step procedure with a checklist: last export from Windows, hardware, installation, base configuration, Docker and the containers, the mail server, backups, finishing touches, cleanup, rollback. The mail server got its own care: it is the one service whose downtime other people notice, and its backup tool has sharp edges.

The migration itself took one evening, on 13 November 2026. Mail was stopped for about three hours, then came back, and I checked that sending and receiving worked and that the usual authentication checks for outgoing mail still passed. I also ran a first full backup and, more important, a restore test.

Lessons

Status

Migrated and running since 13 November 2026, and complete since 21 November. Everything works, with first backup and restore verified. Since then I added the finishing touches: the shutdown on low battery, the shared folders of the other NAS boxes that the server needs, mounted on demand, and a file share of its own for downloads. I meant to do the final cleanup after two weeks without problems, but on 20 November, after one week, I decided to bring it forward, and did it in a single day:

With that the migration is complete. Three things remain that are now ordinary maintenance, not migration: replacing the UPS batteries with a real blackout test, a real test of waking the machine over the network, and deleting the safety copies left on the system disk after a few days without problems. I won’t fix the cable of the old disk: it now only holds a copy of the backups, and a speed limit does no harm.

Stack

Debian · Docker · restic · UPS tools · systemd