Book a free call

How to Move Legacy Systems to the Cloud Without Breaking Them

Moving legacy systems to the cloud shifts old software off local servers. Here are the six strategies, a phased plan and the checks that keep the move safe.

Hertiv engineering teamReviewed by a senior engineer
7 min read
How to Move Legacy Systems to the Cloud Without Breaking Them
On this page

Short answer

Legacy system migration to the cloud is the process of moving an older application, its data and its integrations from on-premise servers to cloud infrastructure, usually in phases rather than all at once. The goal is to keep the system running for users while replacing the parts that are expensive, fragile or hard to change.

What is legacy system migration to the cloud?

Legacy system migration to the cloud is the process of moving an older application, its data and its integrations from servers you own to infrastructure run by a cloud provider, usually in phases rather than all at once. The application keeps serving users while the parts underneath it change.

A legacy system is not automatically a bad system. It is usually a system that works, earns money and holds years of business rules, but runs on hardware, operating systems or database versions that are expensive to keep, hard to patch or difficult to change. Migration is a way to keep the value and replace the parts that hold it back.

The move can cover the application code, the database, file storage, scheduled jobs, integrations with other systems and the network around them. Some teams move everything; others move one workload at a time and leave the rest where it is. A phased move is the safer choice for systems that cannot stop, because each step can be tested and reversed. For teams that need help planning the move, cloud services cover architecture, migration and operations.

What are the main cloud migration strategies?

The main cloud migration strategies are the six "R" options: rehost, replatform, repurchase, refactor, retire and retain. Each one trades effort against benefit, and a single migration usually mixes several of them.

StrategyWhat it meansEffortWhen it fits
RehostMove the system as it isLowUrgent deadline, stable system
ReplatformSmall changes, such as a managed databaseMediumQuick wins without a rewrite
RepurchaseReplace with a SaaS productMediumA standard tool does the job
RefactorRebuild parts for the cloudHighScale or change is the goal
RetireSwitch the system offLowNobody uses it any more
RetainLeave it where it isNoneRisk or cost of moving is too high

Rehosting, often called lift and shift, is the fastest path and the right choice when a data centre contract is ending or hardware is about to fail. Replatforming keeps the same application but swaps in a managed database or managed file storage, which removes patching and backup work. Refactoring gives the biggest long-term gain but is really a rebuild, so it belongs in a separate budget and plan.

Retire and retain are often skipped, but they save the most money. Every migration inventory finds systems that can be switched off or left alone. Removing one unused system is cheaper than migrating it well.

How do you assess a legacy system before migrating?

You assess a legacy system before migrating by mapping what it does, who uses it, what it depends on and what it costs to run today. The assessment decides the strategy for that system, not the other way round.

Start with the business picture: which teams use the system, how often, and what breaks if it stops for a day. Then map the technical picture: the language and framework, the database, the integrations, the scheduled jobs, the licences and the security rules around the data. Talk to the people who run it, because the written documentation is usually out of date.

Check four things in particular:

  • Data. How much data is there, how clean is it, and are there personal or regulated records that need special handling?
  • Dependencies. What else calls this system, and what does it call? A hidden nightly batch job is the classic surprise.
  • Performance. What response times do users accept today, and what happens at peak load?
  • Cost. What does the current setup cost per month, including hardware, licences, power and staff time?

Score each system on business value and migration difficulty, then sequence the easy, high-value ones first. A partner for custom software development can help with the assessment when the original developers have moved on.

How do you plan the migration in phases?

You plan a legacy migration in phases by moving one bounded piece at a time, proving it works in the cloud, and only then moving the next piece. Each phase ends with a working system, not a half-moved one.

  1. Pick the first workload. Choose a low-risk, high-value piece, such as a reporting database or a stateless web tier, and define what "done" means for it.
  2. Build the landing zone. Set up the cloud accounts, network, identity rules, logging and backups before any application moves.
  3. Move the data first. Replicate the data and test the copy, because data problems take longer to fix than code problems.
  4. Run both versions side by side. Send a small share of traffic to the cloud version and compare results, errors and speed.
  5. Cut over in a short window. Freeze writes, sync the last changes, switch traffic, and keep the old system ready to take over.
  6. Switch off the old system. Only after a defined period of stable running, and only after the rollback plan has been tested.

Keep a rollback plan for every phase. The plan should say who decides to roll back, how long it takes, and what data has to move back. A rollback that has never been tested is a hope, not a plan. DevOps services can set up the deployment and monitoring pipelines that make phased cutovers routine.

Example (hypothetical): a regional insurer moves its claims system

Example (hypothetical): a regional insurer runs a 15-year-old claims system on servers in its own office. It handles 120,000 claims a year and cannot stop during business hours, so the team plans a phased move over six months.

The team rehosts the web tier first, replatforms the database to a managed service, and leaves the document archive on premise until phase three. The migration budget is $240,000: $90,000 for replatforming work, $60,000 for data migration, $45,000 for testing and $45,000 for training and support. Those four parts add up to $240,000.

Cutover happens on a Sunday in a four-hour window. The team freezes new claims at 02:00, syncs the last changes, switches traffic at 04:30 and reopens the system at 06:00. The old servers stay powered on for 30 days as a fallback. After 30 days of stable running, the old servers are switched off and the monthly infrastructure bill falls from $9,500 to $6,800.

What are the common mistakes?

The most common legacy migration mistakes are moving everything at once, skipping the dependency map, and treating the cloud as a cheaper version of the same data centre.

  • Big-bang cutover. Moving all parts in one weekend leaves no safe fallback and turns every surprise into an outage.
  • Skipping discovery. Undocumented integrations and batch jobs appear during cutover, when they are hardest to fix.
  • Lift and shift, then stop. Rehosting without replatforming keeps the old costs and adds cloud costs on top.
  • No data cleanup. Migrating ten years of duplicate and dead records wastes time and storage.
  • Forgetting licences. Some licences cost more in the cloud, or forbid running on shared hardware.
  • No rollback test. A rollback plan that was never rehearsed fails exactly when it is needed.

How do you know the migration worked?

You know a legacy migration worked when users see the same or better behaviour, costs are understood, and the old system is switched off. The test is not that the system runs in the cloud; it is that the business is better off.

Measure five things after cutover: response times for the most common actions, error rates, the monthly cloud bill against the forecast, the time to recover from a failure, and the time to ship a small change. If any of these is worse than before, fix it before moving the next workload.

Keep the old system in a powered-off state for an agreed period, usually 30 to 90 days, before deleting it. Confirm that backups restore, that access rules match the old ones, and that the team that will run the system can do so without the migration team.

When those checks pass, the migration is done and the next system can start. Existing posts on how to modernize legacy software cover the wider programme around a single move.

For the definitions behind that programme, see what legacy modernization means.

Key takeaways

  • Pick the migration strategy per system: rehost, replatform, repurchase, refactor, retire or retain
  • Map dependencies, data and costs before choosing how to move anything
  • Move in phases with a tested rollback plan for each cutover
  • Retiring unused systems is often the cheapest migration decision
  • Judge success by response times, error rates and cost after cutover, not by the move itself

Frequently asked questions

What is the difference between rehosting and replatforming?

Rehosting moves a system as it is, with no code changes, while replatforming makes small changes such as swapping in a managed database. Rehosting is faster; replatforming removes more operating work. Most migrations use rehosting for urgent systems and replatforming for the ones that stay.

How long does a legacy migration take?

A single system often takes two to six months from assessment to switch-off of the old servers, depending on size, data quality and dependencies. A full estate of many systems is a programme that runs for a year or more. Phased moves let each system go live on its own schedule.

Is the cloud always cheaper than on-premise servers?

No. A simple rehost can cost more than the old setup, especially if the system runs at full size all day and night. Savings come from replatforming, switching off unused systems, and scaling resources to demand. Always compare the forecast cloud bill with the true current cost.

What happens to the data during migration?

Data is usually copied first and kept in sync while the application is tested against the copy. At cutover, writes are frozen briefly, the last changes are synced, and traffic switches to the cloud copy. Cleaning duplicate and dead records before the move saves time and storage.

Can a legacy system run in the cloud without code changes?

Often yes, through rehosting, if the operating system and database versions are supported in the cloud. Very old versions may need an upgrade first, and some licenced software has rules about running on shared hardware, so check support and licensing before planning the move.

What is the biggest risk in a legacy migration?

The biggest risk is an undocumented dependency, such as a nightly batch job or an integration nobody owns, that only appears during cutover. A careful discovery phase and a side-by-side test period catch most of these before users are affected.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: software products in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Planning a move off legacy servers? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Cloud Services service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call