Hosting

Moving a website or server to a new host without downtime

A migration is an inventory, a rehearsal and a cutover window, not a copy of files. The order that keeps a site reachable and the rollback real.

A migration moves a website or server from one host to another, together with its files, database, configuration, certificates, scheduled jobs and DNS records. It is a project with an inventory, a rehearsal and a verification pass, because the copy is the easy part.

What makes it difficult is everything pointing at the old machine: records and their time to live, certificate renewal, mail, integrations holding your address, and monitoring that reports silence rather than failure. This guide follows the order we use for a move.

What a migration is, and what no downtime honestly means

A migration moves a website or server to a new host with its files, database, configuration, certificates, jobs and DNS records. It is a project with an inventory, a rehearsal and a verification pass, not a folder copy. No downtime is an honest claim only as a short cutover, not as the absence of any interruption.

Every migration has a moment when the old answer and the new answer disagree. The realistic goal is to make that moment short, planned and reversible: the target already serves the site, the data is current enough, and the switch is one deliberate change. A planned window of minutes is a different promise from an invisible move, and it is usually the one that can be kept.

  • The goal is a short, announced cutover rather than zero interruption
  • Read-only or low-write periods make the window easier to hold
  • State kept only in memory or in a local file needs a decision
  • The old environment stays reachable until the new one is checked

Need help applying this?

Tell us about your setup and constraints — we will reply with the options we would consider, including the ones that do not need us.

Discuss your project

Inventory and dependencies: what actually has to move

Write the inventory before touching anything. It lists services and versions, the runtime and its extensions, database engine and size, file storage and uploads, scheduled jobs, TLS certificates, every DNS record with its time to live, and the integrations that pin your address: payment callbacks, single sign-on, webhooks and mail.

Group the list by what breaks if it is missed. Data that changes during the move needs a freeze or a synchronisation pass. Anything carrying a hard-coded address needs finding before the switch. Accounts registered in someone else's name, such as the registrar, need to be reachable on the day, which is worth confirming a week earlier.

  • Runtime, versions and extensions, not only the site files
  • Database engine, size, and how long a dump takes to restore
  • Scheduled jobs, workers and the timezone they run in
  • Third parties pinning your address: payments, single sign-on, APIs

DNS time to live and the cutover plan

Time to live is how long a resolver may cache an answer, so it sets the floor for how quickly a switch takes effect. Lower it on the records you plan to change one or two TTL periods before the cutover, then change one record class at a time and watch what the site does first.

The cutover plan is a short written document: who changes what, in which order, at what time, who watches the site, and which measurement triggers a rollback. Change DNS after the target has served real traffic in a test, not before. Keeping the old host answering turns the move into a handover.

  • Lower the TTL first, then wait one or two TTL periods
  • Change the record rather than the nameservers when that is enough
  • Schedule the window when traffic and staff are both low
  • Agree the rollback trigger as a number before the window opens

Rehearsal and rollback

A rehearsal means building the target, restoring the data into it and running the complete site there before any DNS record changes. Add the rollback test: switch back to the old host deliberately, watch what breaks, and write down the trigger that decides when to use it. An untested rollback is a hope.

The rehearsal is where migration problems become cheap. Restore from a real backup rather than a fresh export, then exercise the paths that fail only under load: uploads, search, login, checkout, background jobs, outgoing mail. Test the rollback while nothing is at stake, because the moment it is needed is the worst time to learn it was never tried.

  • Restore a real backup, not an export made for the occasion
  • Test uploads, search, login, payment and mail on the target
  • Rehearse the rollback and record how long it takes
  • Keep the old configuration available for the switch back

Verification, and what to do first if something breaks

Verification checks what fails silently rather than what looks fine. That covers status codes and redirects, the certificate chain, forms and their delivery, outgoing mail, overnight jobs, completed backups, search console errors and the canonical host. Work from a written list, and treat the old environment as live until monitoring has been quiet.

If something breaks, stabilise before diagnosing. Point the record back if the rollback trigger was met, or stop the change that caused it, then read logs with one fixed question: what changed in the last hour. Restore service first and investigate with the site answering. Afterwards, rotate any credential exposed during the confusion.

  • Check codes, redirects and the canonical host before anything else
  • Confirm certificate chain, forms, mail and overnight jobs
  • Watch error rates and logs through the first business day
  • Keep the old environment until monitoring has been quiet

Key takeaways

  • A migration is an inventory, a rehearsal, a cutover and a check, in that order.
  • DNS time to live decides how fast a switch takes effect, so lower it early.
  • The rollback has to be exercised, not described in the plan.
  • After the switch, check what fails quietly: mail, jobs, forms, certificates.

FAQ

Have a decision to make this quarter?

Tell us what has to run, who owns it today and what breaks under load. We will reply with the options we would consider, including the ones that do not need us.

Contact page