Blog
Data migration plan: what goes in it, with a template
A data migration plan says what data moves, how it moves, how you prove it arrived and how you switch back. Template, strategy choices and the process.
A data migration plan is the document that decides, before anything is copied, which records move to the new system, how they are changed on the way, how anyone will know they arrived complete, and what happens if the new system has to be abandoned halfway through the switch. It is written for the people who own the data as much as for the engineers who move it, because most of its decisions are business ones: which history to keep, how long the business can stop entering orders, who signs off that the numbers match.
AWS calls the plan “the roadmap to a successful migration” in its overview of data migration. This guide treats it as something more concrete: a set of sections, each answering one question, filled in below for an invented example so you can see what a finished one looks like. If you are still working out whether your project moves data once or keeps systems exchanging it, start with data migration vs data integration. If the application itself is moving to new servers or a new platform, the wider job is covered in what is software migration.
Plan, strategy and process: three different things
The three words are used loosely, and keeping them apart makes the document easier to write.
| Term | The question it answers | Where it sits in the plan |
|---|---|---|
| Data migration plan | What exactly are we moving, who decides, and how will we know it worked? | The whole document |
| Data migration strategy | Which approach suits this data: one weekend or many small moves, a copy tool or the database's own replication? | One section, chosen early |
| Data migration process | In what order do the steps run on the day, and what does each one prove? | The runbook, written last and rehearsed |
A strategy chosen without a plan tends to fit the tool someone already knows rather than the data. A process written without a plan has nothing to measure itself against.
What goes in a data migration plan: a template
The example in the right-hand column is invented for this guide. A community music school with about 1,900 current and former students is replacing a desktop scheduling program with a new web system. The old program keeps students, families, teachers, lesson bookings and invoices in its own local database. The new system runs on PostgreSQL.
| Section | What it settles | Filled in for the music school (invented) |
|---|---|---|
| 1. Reason and scope | Why the move is happening and which data is in it | Old program no longer supported; move students, families, teachers, bookings and invoices; rooms and instruments are re-entered by hand |
| 2. Source inventory | Every place the data lives today, including the ones nobody mentions | The program's database, a spreadsheet of sibling discounts kept by the office, scanned consent forms in a shared folder |
| 3. Owners and sign-off | Who decides about each kind of record, and who says "it matches" | Office manager for students and families; bookkeeper for invoices; head of teaching for teacher records |
| 4. What stays behind | Records not migrated, and where they go instead | Students with no lesson in seven years, and their invoices, exported to a read-only archive kept as the school's records policy requires |
| 5. Field mapping | Where each old field lands and what rule changes it | A table per entity (example below) |
| 6. Cleansing rules | Which problems are fixed before the move, which after, and by whom | Duplicate families merged by the office before the first rehearsal; missing birth dates flagged, not guessed |
| 7. Approach | The strategy, and the reason for it | Everything in one weekend, because the school is closed on Sundays and lessons can be booked on paper for one Saturday |
| 8. Tools | What extracts, transforms and loads the data | The old program's export to CSV, a load script kept in version control, run the same way at every rehearsal |
| 9. Rehearsals | How many full trial runs, on what copy of the data, and what each must show | Two full runs on a copy of live data; the second must finish inside the time the weekend allows, with zero unexplained differences |
| 10. Acceptance checks | The counts, totals and spot checks that decide go or no-go | Counts per table, invoice totals per family, 30 families checked on screen by the office manager |
| 11. Cutover runbook | The timed steps of the real move | Friday 18:00 freeze to Sunday 16:00 decision (below) |
| 12. Fallback | The point of no return, and how to go back before it | Until Monday 10:00 the old program can be reopened as it stood on Friday; entries made in the new system since are re-entered by hand. After that, problems are fixed in the new system |
| 13. Communication | Who is told what, and when | Families emailed two weeks before and on Monday; teachers given the paper booking sheet on Friday |
| 14. Retirement | When the old system is switched off and what is kept | Final backup of the old database kept with the archive; program uninstalled after one clean month |
Sections 4 and 12 are the easiest to leave blank. A plan that never says what stays behind usually moves everything, including records the business had no reason to keep. A plan with no fallback has one, in practice: whatever the team makes up on the night.
AWS also suggests writing the migration pipeline as code where you can, so that the scripts themselves become what it calls “a living data migration plan”. The school’s load script is that: section 8 points to it, and every rehearsal runs the same file.
Data migration strategy: choosing the approach
The strategy section is short in the finished plan, but it rests on four questions, and the answers usually decide it between them.
How long can the business stop writing to the old system?
Google Cloud’s architecture guide, Database migration: concepts and principles, is blunt that truly zero downtime is impossible at the switch itself: there is always a moment when the applications using the database cannot process requests. A phased move keeps the business working, but each phase still has that moment. What you can choose is whether that moment is a few minutes (near-zero downtime) or long enough to do the whole job in one go. When a long pause is acceptable, the approach gets much simpler, because nothing changes in the source while you copy it. For a move between two databases of the same kind, Google names export and import, or backup and restore, as the natural tools. The condition it attaches is worth copying into any plan: be sure the window is long enough for the move and the testing after it, and plan a low-downtime migration if you cannot be sure.
All at once, or in stages?
AWS puts it simply: you can move everything at once or in stages, for example in chunks overnight over several weeks, and moving everything together is the easiest and fastest option when it is possible at all. The terms “big bang” and “trickle” are common shorthand for the two. Staged moves suit large datasets and businesses that cannot close, and they cost more coordination, because for a while some records live in the new system and some in the old.
Same kind of database, or a different one?
Google draws a line between homogeneous migrations (MySQL to MySQL, or self-hosted PostgreSQL to a managed PostgreSQL service) and heterogeneous ones (Oracle to Spanner, say). In the first, the schemas are likely identical and the data can often travel unchanged. In the second, the target schema has to be designed, which can take several iterations, and queries in the application may need rewriting, because the schemas differ and the two databases may not even behave the same way inside a transaction. The guide adds that when queries change, the application has to be tested as a whole: checking the data alone does not prove the software still works.
One source and one target, or more?
Google calls this cardinality. Most moves are one source to one target. Consolidation merges several sources into fewer targets, distribution splits one source across several (regional databases, for example), and re-distribution moves many to many, such as re-balancing uneven shards. The music school is a small consolidation: the office’s discount spreadsheet is folded into the same target as the program’s database.
| If your situation is | The approach that usually fits |
|---|---|
| Small dataset, a closed day or weekend available | Everything at once: export and load, or backup and restore between engines of the same kind |
| Same database engine, little downtime allowed | The database's own replication, then a short switchover |
| Different engines or structures, little downtime allowed | A migration service or tool with change data capture |
| Very large dataset, the business cannot pause | In stages, by entity or by region, each stage with its own checks |
On tools: Google lists three broad routes, which are a migration system, the database’s built-in replication, or something you build yourself. Its examples of migration systems include its own Database Migration Service, Striim and Debezium; on AWS the equivalent is AWS Database Migration Service, which handles one-time moves and ongoing replication of changes. Building your own gives full control, and Google warns that it also brings constant maintenance for bugs and scaling limits.
The data migration process, step by step
For a migration that has to keep downtime short, Google describes five phases and a sixth for emergencies. Even a weekend move like the school’s follows the same shape, with the first three phases folded into one export.
- Initial load. Note the database’s system time just before extraction starts, then copy the full set of records that are in scope. Users keep working on the source while this runs, so the copy is out of date the moment it finishes.
- Continuing migration (catching up). Starting from the noted time, read every change made since and apply it to the target. The best way to see those changes is change data capture (CDC), which reads them from the database’s transaction log in the order they happened. Where no log is available, a poller can look for rows with a newer timestamp, but deleted rows leave nothing behind to find, so the source needs a “deleted” flag instead of real deletes. Changes caught by both the load and the catch-up must not be applied twice, which is why each record needs a stable identifier.
- Draining. Stop all writes to the source and wait for the last changes to arrive. Google’s suggestion for knowing when you are done: write one final marker record to the source, and when it appears in the target, draining is complete. Back up the target at this point.
- Switchover. Test the basic functions against the target, back it up again, then point users and other systems at it. The number of tests you run here sets how long the downtime lasts, so choose them in advance.
- Retire the source. Take a final backup of the old database so there is a known end state, which regulations may also require, then turn it off.
- Fallback, if needed. Move users back to the source. This is the step that needs the most preparation (see below).
Google’s advice for the whole period: avoid changing the schema, the data rules or the migration scripts while a migration is running, and if a change cannot wait, test it first on copies loaded with production data.

Writing the field mapping
The mapping is the part of the plan that engineers read most and owners read least, so it needs to be written in a way the owner can check. One row per target field is the usual layout. Here are four rows from the school’s mapping (invented):
| Old field | New field | Rule | Who confirms |
|---|---|---|---|
StudName |
first_name, last_name |
Split on the last space; names with more than two parts listed for the office to check by hand | Office manager |
DOB (text, mixed formats) |
birth_date (date) |
Parse the three formats found in profiling; anything else left empty and flagged | Office manager |
Status (free text) |
status (one of active, paused, left) |
Map the eleven spellings found in profiling; a new spelling stops the load instead of guessing | Office manager |
LessonDate, LessonTime (local) |
starts_at (timestamp with time zone) |
Combine the two and read them as local time in the school's time zone when loading, so a lesson in the week the clocks change still starts at the right hour | Head of teaching |
Google’s guide sorts these changes into kinds: changing a value’s type (text to date), changing structure (one field split in two, or one table into several), and changing a value while keeping its type (local time into UTC). It also warns about the third row’s trap. Status fields stored as plain text tend to collect values that one part of a program accepts and another does not, and a migration script that relies on the list it was written against may fail when a new value turns up. Run a profile of every coded field before writing the rule, and make the load stop on anything it has not seen.
How to prove the data arrived
Google defines a consistent migration as complete (everything in scope arrived), duplicate free (each item arrived once) and ordered (changes were applied in the order they happened). Acceptance checks are how a plan turns those three words into a yes or a no. They work best in layers, from cheap to thorough:
- Counts. Rows per table, on both sides. Quick, and enough to catch a missing file or a failed batch.
- Totals. Sums of the columns that matter to the business: money owed, hours booked, units in stock. A count can match while every amount is wrong.
- Row by row. Every record compared field by field. AWS DMS data validation does this, comparing each source row with its target row and reporting mismatches. It needs a primary key or unique index on each table, and it adds time beyond the migration itself, depending on how much data was moved.
- Business checks. The owner looks at a sample of real records in the new screens, chosen to include the awkward ones: the family with four children, the student who paused twice.
One trap when data is filtered on the way, as the school’s archived records are: a straight comparison of source and target will never match. Google’s answer is to keep a record of what the migration filtered out, and compare the source with the target plus that list. In the school’s plan, the acceptance check for invoices reads:
-- Run on the new database. Run the equivalent on the old data (its own table and column names,
-- or the exported CSV), leaving out the archived students' invoices by the same rule the load uses.
-- The two results must agree.
SELECT COUNT(*) AS invoices,
SUM(amount_cents) AS total_cents,
MIN(issued_on) AS first_issued,
MAX(issued_on) AS last_issued
FROM invoices;
The same query, grouped by family, gives the bookkeeper one invoiced total per family to compare. A difference of one cent is a failed check, not a rounding detail, until someone has found where the cent went.
The cutover runbook and the way back
The runbook turns the process into times and names. The school’s (invented) is short because its window is long:
| When | Step | Owner |
|---|---|---|
| Friday 18:00 | Last lessons end; old program set to read-only; paper booking sheets handed out | Office manager |
| Friday 19:00 | Final export; backup of the old database | Engineer |
| Saturday 09:00 | Load into the new system, as rehearsed | Engineer |
| Saturday 15:00 | Counts and totals compared; differences explained or fixed | Engineer, bookkeeper |
| Sunday 11:00 | Business checks on 30 families; Saturday's paper bookings entered | Office manager |
| Sunday 16:00 | Go or no-go, against the acceptance checks in section 10 | Office manager, bookkeeper |
| Monday 10:00 | Fallback window closes | Office manager |
The fallback is where Google’s guide is most useful, because it explains why the way back costs so much more than it looks. Before the switch, going back is easy: the source was never touched, so you abandon the target and try again another day. After the switch, users have been writing to the new system, and going back means moving their changes in the opposite direction, which is a whole migration of its own. Doing it without a long outage means running that reverse flow from the moment of the switch. Google lists what that demands: target structures that can be turned back into the source’s (data that was joined or totaled on the way in may be impossible to split apart again), a way to see changes on the target, and the old application kept in working order. It describes fallback as a last resort that still has to be treated as a full migration, including testing.
Most small projects should not build that, and the school’s plan does not. It does the cheaper thing, which is to write the trade-off down: until Monday 10:00 the old program can be reopened as it stood on Friday evening, and whatever was entered in the new system since then (Saturday’s paper bookings and Monday’s first hour) is typed into it again from the paper sheets and a printed list. After that the school fixes forward. The decision is recorded in section 12 so that nobody discovers on Monday morning that there was no way back.
When the data moves cleanly and the migration still fails
Reconciled data is necessary. TSB shows what it leaves out. In April 2018 the UK bank TSB migrated the data behind its corporate and customer services to a new IT platform. According to the Financial Conduct Authority, the data itself migrated successfully, but the platform immediately ran into technical failures that disrupted branch, telephone, online and mobile banking. All branches and a significant share of its 5.2 million customers were affected, and it took until December 2018 to get back to business as usual. In December 2022 the FCA and the Prudential Regulation Authority fined TSB a total of £48,650,000, finding that it had failed to organize and control the migration program adequately and to manage the operational risks of outsourcing to its critical supplier. The FCA’s enforcement director put it more plainly: the firm had failed to plan for the migration properly.
The lesson for an ordinary plan is about scope. Acceptance checks should cover whether the new system works with the migrated data under real use: the busiest screens, the overnight jobs, the reports at month end. A plan that only asks whether every row arrived can pass while customers are locked out.
Questions people ask
What is a migration plan?
In general, a migration plan is the written decision about what moves from an old environment to a new one, in what order, and how you will know it worked. A data migration plan is the version of that for records: it is narrower than a plan for moving whole applications, and more detailed about mapping, checks and fallback.
What are the four types of data migration?
AWS names four: storage, database, application and business process migration. What changes between them is which sections of the plan carry the weight. A storage move (files to cloud storage) is mostly inventory and counts. A database move adds the field mapping. An application move (an old ERP to a cloud version, in AWS’s example) adds testing of the software against the migrated data, and a business process move adds the people: who works differently on Monday.
How much does data migration cost?
No honest figure fits every project, but the parts of the cost are well known. AWS lists the tools, the people, the new infrastructure and decommissioning the old one, plus the loss of productivity or revenue while systems are down. To those, add the condition of the data. Cleansing and mapping effort grows with the number of exceptions, not the number of rows, which is why profiling the data first (it feeds sections 5 and 6 of the template) is the most reliable way to size the job.
What is an example of data migration?
AWS gives two common ones: moving files from an on-premises file server to Amazon S3, and moving a SQL Server database from a company’s own data center to Amazon RDS. The music school in this guide is a third, smaller kind: moving records out of a desktop program that is no longer supported into a new web system, with some history archived rather than moved.
Before you start yours
Whatever the size of the job, the same few questions are worth answering in writing before the first rehearsal:
- Which records are not moving, and where do they go?
- Who signs off that the totals match, and which totals?
- How long can the business stop writing to the old system?
- What is the last moment you can go back, and what does going back involve?
- What will you check, beyond the data, before users are let in?
Data migration sits among the deliverables listed on our enterprise software development page. To talk through a plan of your own, write to us through the contact page. You will hear back within one business day.
The full service behind this post: Enterprise Software Development Company & Services.
Ready to scope your project?
Send us two sentences about what you need. We reply within one business day with the next step and any questions we need answered first.