Self-Hosting · Operations

Migrating Data Between Systems Without Losing Anything: A Playbook

Sooner or later every self-hoster moves house: an old NAS to a new one, spinning disks to a TrueNAS build, a stack from one machine to another. The copy itself is the easy part. What separates a clean migration from a bad weekend is procedure — copying in phases while the old system keeps serving, verifying with checksums instead of hope, and cutting over with a rollback still possible. This is that procedure.

Published Nov 20, 2026

Phase 0: inventory before you touch anything

Write down what is moving: every share and dataset with its size, every application and where its data lives (use the per-app notes from our database backup guide — databases migrate by dump and restore, not by file copy), and every consumer of the data (who mounts what, by which name or IP). Measure the total and do the transfer math with real numbers: a gigabit link moves roughly 400 GB an hour in real conditions, so 8 TB is most of a day. That number decides whether you copy over the network or reach for a drive dock and sneakernet. Confirm the destination has room not just for the data but for the data plus your verification copies during the overlap.

Phase 1: the bulk copy, while life goes on

Copy with a tool that can resume and preserve metadata: rsync -aHAX between Linux systems (archive mode with hardlinks, ACLs, and extended attributes), or rclone when a cloud or S3-shaped service is one of the endpoints. Run it as a background job you can watch, and expect to run it more than once — the first pass moves the bulk, and its job is to make the final pass small. Keep the source system fully in service during this phase; nothing about a bulk copy requires downtime, and users who keep working generate only a small delta. Do not reorganize folders mid-migration. A move and a tidy-up are two projects; doing both at once is how files end up in neither place.

Phase 2: verify, don’t trust

“The copy finished without errors” is not verification. Run a checksum pass — rsync’s --checksum --dry-run against the source, or a hash manifest (xxhash or SHA-256) for the datasets that matter — and reconcile counts and bytes per share, not just in total. Spot-restore the irreplaceable things: open the photo library from the new location, mount the document archive, confirm the media library scans. This phase is where you find the one share with case-sensitivity problems, the filenames a different filesystem rejects, and the permissions that didn’t survive — while the old system is still right there.

Phase 3: delta sync and cutover

Schedule a short window. Stop the applications that write (containers down, shares read-only), run the final rsync pass — now minutes, because the bulk already moved — restore the databases from their dumps into the new stack, and start everything on the destination. Point consumers at the new home: same share names and, where you can, the same hostname or IP, so mounts and app configs keep working. Then test as a user, not as the admin who built it: play a movie, open a document, let the photo app back up tonight’s pictures.

Phase 4: the rollback window

Keep the old system intact and powered for at least a week or two after cutover — unmodified, ideally read-only. Migrations fail late as often as early: the backup job still pointed at the old path, the one app whose data lived somewhere your inventory missed. A standing rule from our documentation guide applies: the migration isn’t done when the new system works; it’s done when the old one has been idle long enough that nothing has asked for it, and your notes describe the new layout. Only then decommission, wipe, or repurpose the old drives — and consider keeping one as the offsite backup copy the 3-2-1 strategy wants anyway.

The traps, collected

Copying a live database’s files instead of dumping it (covered in the database guide). Losing hardlinks: media stacks arranged with hardlinks can balloon to several times their size if the copy tool doesn’t preserve them — check with a disk-usage comparison per folder, not just file counts. Permission models that don’t translate between a vendor NAS and plain Linux. And the quietest trap: migrating the data but not the system around it — the backup jobs, monitoring, and shares documentation that made the old box trustworthy. Recreate them on the new system in the same week, while you still remember what they were.

Official documentation and references

Frequently asked questions

rsync or rclone for a NAS-to-NAS move?

rsync for direct Linux-to-Linux transfers: it preserves permissions, ACLs, and hardlinks with the right flags and resumes cleanly. rclone earns its place when an endpoint is a cloud service or S3-compatible storage, or when you want its built-in checksum verification modes. For a one-off local move of many terabytes, also consider moving the drives themselves if both systems accept them — nothing beats a drive dock for bandwidth.

How do I verify the copy really worked?

Three reconciliations: file counts and total bytes per share, a checksum comparison (rsync --checksum in dry-run mode, or a hash manifest) on at least the irreplaceable datasets, and functional spot checks — open the photos, play the media, mount the shares from a client. Do all three before cutover, while the source is still authoritative.

How much downtime does a migration need?

Minutes to an hour for the final delta, if the bulk copy ran beforehand while the old system stayed live. The stop-the-world phase is only the last incremental sync plus database restores and service restarts. If your plan needs a full weekend of downtime, it is missing the phased bulk copy.

When can I wipe the old system?

After a rollback window of at least one to two weeks of the new system running everything — backups, scheduled jobs, and all users — with the old system untouched. Many people keep the old NAS permanently as the backup target; that is the happiest ending a retired box gets.

Related guides