JEEKSSHIRE 24

Data and database migration when switching to a new system: stages, checks and risks

Data migration is the transfer of accumulated information from an old system to a new one: customers, orders, stock levels, documents and history. It is not a single button but a project with stages: an inventory of sources, field mapping, cleansing, trial runs on a copy, reconciliation of the result, cutover and a rollback plan. The main risk is not that data fails to move, but that it moves incorrectly and someone notices a month later. That is why reconciliation is agreed in advance, the old system is not switched off at once, and the cutover happens in a pre-agreed window.

Open the software development page

What data migration is and when you need it

A company keeps customers in spreadsheets for years, orders in an old CRM and stock in an accounting program. Then a new system arrives: a web application, a customer portal, a CRM built around its own processes. The question is immediate: what happens to everything that has piled up. Data migration answers it by moving records so that the new system works with real history from day one rather than an empty database.

Typical reasons for a migration:

When the old system is not simply replaced but modernised piece by piece, the data transfer becomes part of a larger plan, covered in the guide to legacy software modernization.

Stages of a migration

A good migration looks boring: everything is planned in advance, and nothing unexpected happens on cutover day. The usual order of work:

  1. Inventory: which systems and files are sources, who owns them, how many records and of what kind.
  2. Scope decision: what moves in full, what moves only for recent periods, what stays in an archive.
  3. Mapping: for every field of the old system, a place in the new one and a transformation rule.
  4. Cleansing: duplicates, empty and contradictory records, inconsistent phone and date formats.
  5. Migration scripts and a trial run on a copy of the data.
  6. Reconciliation: record counts, totals and spot checks of records by people who know the data.
  7. Cutover in an agreed window, verification and close monitoring of the first days.
  8. Retiring the old system: read-only first, then archive.

Trial runs and reconciliation are repeated as many times as needed until the result is predictable. The live transfer is a rerun of a rehearsed procedure, not a first attempt.

Inventory of sources: what exactly moves

The first surprise of almost any migration is that there is more data than expected, and it is not only where people thought. Besides the main program there are managers' spreadsheets, exports, reference lists in email and attachments in shared folders. So the work starts with an inventory: the list of sources, owners, volume, format and how often the data changes.

Then you decide what to move. Moving everything is not always the best choice: a decade of deleted drafts weighs down the new system and complicates reconciliation. A common option is to move active records and history for a clear period into the working database and keep the rest in a read-only archive. The decision is made by the process owner together with whoever is responsible for reporting, not by a developer alone.

Field mapping and cleansing

The structures of the old and new systems almost never match. In one, a customer is a single row with an address in free text; in the other, a record with separate fields and several contacts. So a mapping table is drawn up: where each field comes from, where it lands and what happens to it on the way.

Old systemNew systemRule
Full name in one fieldFirst name, last nameSplit; doubtful records go to a manual review list
Phone in any formatPhone in one formatNormalise; merge duplicates by number
Order status: 12 valuesStatus: 5 valuesAgree the mapping with the process owner
Amount as text with currencyNumber plus currency codeParse; parsing errors go to a report
File in a shared folderFile in storage, link in the recordMove and check that every file opens

Cleansing is better done before the transfer than after: in the new system dirty data spreads into reports and integrations. The source data itself is not edited. Cleansing follows rules in the script, and doubtful cases go to a list that people review.

Trial runs and reconciliation

The transfer is written as scripts rather than done by hand, so it can be repeated any number of times with the same result. Every run happens on a copy of the data in a test environment, never on the live system.

Reconciliation is the heart of a migration. Its checks are agreed in advance:

The result is written up as a report. A signed reconciliation report is the line after which the live transfer can be scheduled. For more on building checks, see the guide to software testing.

Cutover: all at once or in stages

The tensest moment is the switch from one system to the other. There are a few main approaches, chosen for the specific business:

ApproachWhat it looks likeWhen it fits
Single cutoverThe old system is frozen, data is moved, everyone switchesThe volume is clear and the process can pause for a short window
Phased transitionDepartments, branches or data types switch in turnMany users and a high cost of downtime
Parallel runningBoth systems run at once with data kept in syncContinuity is essential and results need comparing

Whatever the approach, a rollback plan is written in advance: what we do if a serious error appears after cutover. The old system stays read-only for a while, and a backup taken at the moment of cutover is kept. If data comes from an accounting system, agree which system is the master for each reference list; data exchange with accounting is covered in the guide to 1C integration.

Database migration when changing server or DBMS

A separate case is database migration in the narrow sense, when it is not the application but the database itself that changes: it moves to a new server, to the cloud or to another database management system. This has its own specifics:

Do not confuse this with schema migrations, the step-by-step changes to a database structure inside one system as new versions ship. Those are described in the guide to the web app database.

Common migration mistakes

How JEEKSSHIRE 24 migrates data

When we build a new system such as a CRM, a customer portal or an internal service, we plan the transfer of data from spreadsheets and old programs together with its structure, not in the final week. First the inventory and mapping table, then scripts and trial runs on a copy, then reconciliation with people on the client's side, and only after that the cutover. Changes that delete or rewrite data are a separate step taken after a backup.

If the system was written by another team, we start by reading the code and the data. More on the pages for business process automation and software support, and all our services are collected on the software development page.

Frequently asked questions

How long does a data migration take?

It depends on the number of sources, the volume and how clean the data is. The timeline becomes clear after the inventory and the first trial run; before that it can only be roughly estimated.

Can data be moved from Excel and Google Sheets?

Yes, this is a common case. The spreadsheets are first brought to one format, duplicates are removed and formats are parsed, and then the data is moved by script with checks.

Do we have to stop work during the transfer?

Usually a short window is needed when changes stop being made in the old system. For large databases and continuous processes, a phased transition or parallel running is used.

What happens to the old system after migration?

First it stays available read-only for an agreed period, then an archive and backup are kept, and only after that is it retired.

Who checks that the data was moved correctly?

Developers check counts, totals and relationships, and the client's staff who know the data open sample records and confirm the result.

How is data migration different from integration?

Migration is a one-off transfer of accumulated data when moving to a new system. Integration is an ongoing exchange of data between systems that keep working together.

Can we move only part of the history?

Yes. Active records and history for a clear period often go into the working database, while the rest is kept in a read-only archive.

IP geolocation by DB-IP