A database migration dry run is the simplest way to stop a risky cut-over from turning into an all-night incident. Teams keep asking the same practical questions about it, so this FAQ answers them directly: what to rehearse, where, how often and what to do with the results. It assumes you already have a migration planned and want it to go smoothly the first time it counts.
What is a migration dry run?
It is a full rehearsal of the move on a copy of your data and a copy of your environment. You follow the exact steps, in the exact order, with the exact commands, and you measure what happens. Nothing you do affects real users. If the procedure breaks, you have lost an hour, not a customer.
Why not just trust the migration script?
A script describes intent. A rehearsal reveals behaviour. Scripts work on the developer’s laptop with a tiny dataset and then meet a larger table, a stricter permission or an older server version. Rehearsing is how you find out which of those differences matter. The first real run is where you want the fewest surprises, so you deliberately collect them earlier.
Where should the rehearsal run?
On an environment that resembles production in the ways that count: the same database engine and version, a comparable data size, similar configuration and the same access rules. A restored backup is usually the best starting point because it also proves that your backups can be restored, something many teams assume without ever testing.
Does the data have to be real?
Realistic is more important than real. The shape and volume of the data decide how long steps take and whether constraints fail. If real data contains sensitive information, mask or anonymise it before copying, in line with your organisation’s rules. Never rehearse with live credentials pointing at production systems by accident.
What exactly should we time?
Everything that could affect the maintenance window: the export, the transfer, the import, index rebuilds, application restarts and the verification queries. Write the times next to each step. A surprising number of cut-overs fail their schedule not because a step failed but because a step took three times longer than assumed.
What should we check afterwards?
- That row counts and key totals match between old and new.
- That the application can connect, read and write.
- That scheduled jobs, reports and integrations still work.
- That permissions and users arrived intact.
- That the rollback path actually returns you to the starting position.
Do we need to rehearse the rollback too?
Yes, and it is the part most often skipped. Teams spend weeks on the forward path and assume the backward path will be obvious. It rarely is. A rollback performed for the first time under stress tends to invent steps on the spot. Practise it on the copy so that “go back” is a procedure, not a hope.
How many rehearsals are enough?
One is a big improvement over none. Two is better when the first one reveals changes, because you want at least one clean pass of the corrected procedure. Keep going until a full run completes with no edits to the instructions. If the second rehearsal still needs rewriting, the plan is telling you something important.
Who should be in the room?
Everyone who will touch the cut-over: the engineer running commands, the person who owns the application, whoever supervises the network or access, and a note-taker. If someone is only available on the night, they should at least read the rehearsal notes beforehand. The goal is for nobody to meet the procedure for the first time at the moment it matters.
Which tools help?
Nothing exotic. A shared terminal session, a checklist document, a stopwatch and a way to snapshot the environment for repeats cover most needs. Building comfort with the everyday tools matters more than collecting new ones, and a practical walk through the core tooling engineers should know hands-on is a fair place to check that your basics are solid.
How does this fit with how our teams work together?
A rehearsal is a natural meeting point for developers and operations, because both sides see the same procedure at the same time. Misunderstandings about who owns a step usually surface in minutes. For the wider argument on why that collaboration pays off, this discussion of how development and operations teams join forces sets out the case.
What about the people side on the night itself?
Agree the communication plan during the rehearsal, not afterwards. Decide who announces the start of the window, who confirms completion and who can call a halt. Run through the messages you would send if the timing slips. A rehearsed announcement is shorter and calmer than one composed while a progress bar sits at ninety percent. Also decide where everyone will sit or which call they will join, because tiny logistics like a missing meeting link can cost minutes that a tight window cannot spare.
Can rehearsal ideas travel outside IT?
Absolutely, and sometimes the best examples come from unlikely places. Heritage cooking is one. A traditional recipe is a procedure passed between people, and preserving it means testing it, annotating it and making it repeatable. Blendz is a food-heritage archive spanning many cultures, built around cherished recipes and rare ingredients, where visitors can send in what their own families cook, which is a good illustration of how careful repetition turns private habits into reliable knowledge.
What if the rehearsal fails badly?
Then it did its job. A failed rehearsal is the cheapest failure you will ever have. Record what broke, fix the plan, and run again. Pressure to “get it right” in the rehearsal defeats its purpose; people hide problems rather than expose them. Make it clear beforehand that findings are welcome and that nobody is being graded.
What should we keep afterwards?
Keep the annotated procedure, the timings and a short list of what surprised you. Store them with the project so the next migration starts from experience instead of memory. Over time, this collection becomes one of the most valuable things a team owns, because it records how your own systems really behave.
What is the one thing to do first?
Restore last night’s backup to a scratch environment and run your migration steps against it, timing each one. That single exercise exposes more problems than a week of reviewing the script on a screen.

