The data is usually the most valuable part of a legacy system, and the part people worry about most. Code can be rewritten, but a lost customer record or a wrong balance is a problem the business feels straight away.
A good data migration is boring on the day. All of the excitement happens in the weeks before, in rehearsals. Here is the approach that makes that possible.
1. Profile the source data
Before designing anything, look at what is really there. Count records, find duplicates, check for empty and malformed fields, and look for values that only make sense to the people who use the system every day. Legacy data almost always holds surprises: free-text fields used as codes, dates stored as text, or records the application hides but never deleted.
2. Agree the rules with the business
Decide with the data owners what happens to each surprise. Which duplicate wins? What does an empty field mean? Which old records are archived rather than migrated? Write these rules down. They become the specification for the migration scripts.
3. Script it, never do it by hand
Every step, from extract and transform through to load, should be a script that can be run again from scratch. Manual fixes cannot be repeated, tested or audited, and they will be forgotten in the next rehearsal.
4. Rehearse, then rehearse again
Run the full migration into a test copy of the new system, check it, fix the scripts and run it again. Each rehearsal also tells you how long the real run will take, which is what makes a short cut-over window possible.
5. Reconcile, do not assume
After every run, compare source and target: record counts, totals, sample records and the numbers the business cares about, such as account balances or open orders. A reconciliation report that business owners sign off is the clearest signal that the migration is ready.
6. Plan the cut-over and the way back
Move the bulk of the data in advance, then sync only the changes in the final window. Agree in advance what will trigger a rollback and how long it would take. A rollback plan that has never been tested is only a hope.
Where this fits
These steps apply whether the data lives in an older database engine, in Access or FoxPro files, or inside a platform such as Lotus Notes or Drupal. Our database and data migration service follows this approach, and it underpins every platform migration and CMS and collaboration migration we deliver.