Tutorial · migration-hosting · Published 2026-08-16 · 4 min read

Avoiding downtime during migration

Avoid downtime during a host migration with a cutover plan, low DNS TTL, tested staging and a fast rollback route.

Flat editorial illustration showing two data boxes crossing a bridge with a dotted orbit trail between them, one box accepting the transfer.
Illustration: this article at a glance.

Why migrations go down

A website migration (new hosting, new server, new region) normally fails because one of three things changes at the same time:

The fix is the opposite: make DNS and the cutover separate, make the new environment identical, and keep a rollback path that works in minutes.

The pre-cutover checklist (do all of this before you point DNS)

The cutover

  1. Point the DNS records you control (A/AAAA, any CNAME) at the new host.
  2. Freeze writes on the old origin first. Do this before or at the moment of the flip, so no two databases both claim to be the truth. In practice: stop the old site from accepting new writes (maintenance mode, read-only DB user, or blocked outbound on the old host), export the final delta of anything written since the original snapshot, and import it into the new database.
  3. Flip at a quiet time (check the access log for the busiest hours first).
  4. Monitor both sides. With a short TTL most visitors follow within minutes; with a long TTL the old host must still serve the stragglers correctly.

What to monitor after

Rollback if things go wrong

When the go-live window is shorter

The total downtime is the sum of the TTL you cannot reduce and the settings-change time. If the old and new hosts share the provider and the DNS record can change in seconds, the cutover is minutes. If a registry or nameserver change is involved, budget a day, not an hour. Reduce the risk in advance by lowering the TTL and doing the application swap first, then the domain flip.

Prevention

Migrations fail less often from the mechanics of clicking buttons and more often from unknown differences between the environments. The habit that prevents most downtime is the staging loop: the staging to live article describes the release drill, and the DNS TTL explanation quantifies the propagation side. Nothing in a migration beats testing the new host against a copy of the real data before an audience can feel a thing.

Need a website built, fixed, optimised, migrated or replaced?

This technical resource is written by CSMBAC, a small design and development studio. If you would rather hand the problem to a professional, the website service page explains how we build enquiry-ready websites.

Explore website services