On this pageStart with an inventory of what really runs
A migration planned as one big move ("everything to the cloud by March") stalls on the first surprise: a forgotten cron job, a partner that only accepts your old IP address, a database that takes all night to copy. A plan that holds up treats each workload, meaning an application with its data, scheduled jobs and users, as a small project with its own decision, date and way back. Commands for copying files, databases and DNS are in the server migration toolkit; this page covers decisions and order.
Start with an inventory of what really runs
Old diagrams describe what someone intended; the inventory must describe what runs today. Build it from the machines, the DNS zone, the invoices and the people who use each system. One row per workload; a shared spreadsheet is enough.
| Column | What to write down | Why it matters |
|---|---|---|
| Workload | Name and purpose in one line | Gives each decision a clear scope |
| Owner | The person who can say yes and test | Nobody else can sign off on done |
| Runs on | Host, OS, runtime and database versions | Separates a copy from a rebuild |
| Data | Size, monthly growth, where it is stored | Sets the length of the final sync |
| Talks to | Databases, APIs, mail, file shares, licenses | Decides what moves together |
| RPO and RTO | Acceptable data loss and downtime | Sets the rehearsal target |
| Decision | One of the seven Rs below | Turns the row into a plan |
Agree on two columns with the owner. The recovery point objective (RPO) is how much recent data the business can afford to lose. The recovery time objective (RTO) is how long the workload may be unavailable. A weekly blog can lose a day and be down for an hour; an order system can do neither. Those answers decide whether a dump and restore during a quiet hour is fine, or whether you need live replication.
Hidden dependencies worth hunting
- Partners and payment gateways that allowlist your current IP address.
- SPF records naming the old IP, and a mail reputation that stays behind.
- Hard-coded IP addresses in config files, firewall rules and mobile apps.
- Licenses bound to a MAC address, hostname or hardware ID.
- Crontabs and systemd timers that nobody owns.
Choose one of the seven Rs for each workload
Gartner described five "Rs" of migration in 2010, and the list most teams use now has seven. What matters is the rule: every workload gets one explicit decision, written down before work starts.
| Strategy | What it means | Fits when | Small-team example |
|---|---|---|---|
| Retire | Switch it off and archive the data | Nobody has used it in months | An old staging site |
| Retain | Leave it where it is for now | It depends on local hardware or a contract | The office NAS that receives scans |
| Rehost | Move it unchanged to a new server | It works and you need to leave the host | A PHP app copied to a VPS with the same versions |
| Relocate | Move whole virtual machines to the same kind of platform | Source and target run the same hypervisor | KVM disk images imported into another KVM host |
| Replatform | Move it with a few targeted changes | A small change removes a recurring chore | Packaging the app in Docker on the way |
| Repurchase | Replace it with a hosted product | It is standard software you only configure | A self-run help desk swapped for a subscription |
| Refactor | Redesign it while moving | The current design already blocks you | Splitting a monolith into an API and workers |
Fill the retire column honestly: a system nobody needs is the cheapest one to migrate. Then keep redesign out of the move. When architecture and hosting change at once, you cannot tell which change broke something, so rehost or replatform first and improve the design later. Repurchase has its own trade-offs, covered in SaaS or self-hosted.
Put the moves in order
Group the workloads into waves of one to a few moves, then sequence the waves:
- Start with something real but forgiving, such as an internal tool without a database. The first wave tests your process, not your luck.
- Move tightly coupled pieces together. An application that queries a database in another data center pays for the distance on every request.
- Save the workload with the strictest RPO and RTO until the team has done a few cutovers.
- Avoid month-end close, sales seasons and the week a key person is away.
Define done before the first move
Write the exit criteria for each workload while nobody is tired:
- The owner's smoke tests pass: log in, place an order, run the nightly export.
- Error rates and response times are no worse than before. Measure the old system now, or you will have nothing to compare.
- Backups run on the new side, and one restore has been tested.
- Monitoring and alerts point at the new servers.
Rehearse on a copy
Build the target, copy production data into it, run the smoke tests and time every step. The key number is the duration of the final data sync: it is the core of your downtime window. Rehearse twice: the first run finds missing steps, the second shows whether the timings hold. Then write the runbook as numbered steps, each with a named person and an expected duration.
Rehearsals stay cheap when servers bill by the hour: on CloudSat, a rehearsal server costs only the hours it runs before you delete it (see plans).
Cut over with a way back
- Lower the DNS TTL days ahead, for example to 300 seconds. Resolvers keep the old value until the previous TTL runs out, so a record cached for 24 hours needs a day of notice.
- Tell people early. Users get the window; partners who allowlist your address get the new IP before the day.
- Snapshot the new server in its tested state, so a failed first attempt restarts from a clean point.
- Freeze writes. Show a maintenance page and stop workers and cron jobs on the old side.
- Run the final sync, then compare row counts or checksums.
- Switch DNS, start the services and run the smoke tests before reopening.
- Keep the old system read-only until one full business cycle, such as a month-end, has passed.
Read the configured TTL from the zone's authoritative server (a public resolver shows a countdown); it is the second field of the answer, in seconds:
dig +short NS example.com
dig +noall +answer example.com A @ns1.example.net
Agree on the rollback trigger in advance
Decide before the window what sends you back, such as a failed smoke test or errors that stay high for 30 minutes, and name the one person who makes the call. Rolling back is easy in the first hour and hard after a day of new writes, which must then be copied back or given up.
The first two weeks after
- Test a restore from the new backups. A green backup job proves files were written, not that you can get them back.
- Read the old server's access logs. Any request still arriving there comes from a client or partner that missed the change.
- Check the bill for rehearsal servers, forgotten snapshots and unexpected transfer.
- Decommission last. Take a final archive, wipe the disks, cancel the service, and remove the old IP from SPF records and allowlists.
FAQ
How long does a cloud migration take?
It depends on the number of workloads, their data and their dependencies, not on the destination. A single application on one server can often move in a day of work plus a short window; a dozen interlinked systems takes several waves. The inventory gives the honest estimate.
Is lift-and-shift a mistake?
Not by itself. Rehosting is the quickest way off a platform you need to leave, and small changes are easy to debug. The mistake is never revisiting sizing, backups or design afterwards.
Should the database move before or after the application?
Together, or the database first with replication keeping the new copy current. Splitting an application from its database across two locations adds latency to every query and makes failures harder to read.
Can we migrate with zero downtime?
Close to it: replicate data continuously, keep the TTL short and switch during a quiet hour. True zero downtime needs an application that accepts writes in two places at once, which few small applications do. Aim for a window shorter than the agreed RTO.
Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.




