Skip to content

Cutover day runbook for a cPanel migration

The day of the cutover is hour-by-hour, not improvised. Here is the runbook that makes the difference between a 90-minute cutover and a half-day cutover.

The day of a cPanel migration cutover is the day everything written down weeks before either pays off or does not. Without an hour-by-hour runbook, the team improvises under pressure and the cutover stretches from the planned 90 minutes to half a day, with three escalations along the way. The runbook below is the shape that works.

What’s happening

A cutover is a coordinated sequence of pre-checks, the action, post-checks, and a watch period. Each step has a “go/no-go” gate before the next. Each role (lead, comms, customer-facing) knows what they own. The hardest part is sticking to the runbook when something unexpected happens — the temptation is to fix it on the fly, but the runbook should have a “pause / escalate / abort” branch for unexpected events.

How to verify

The night before, run the pre-flight:

# source health
df -h /home
exim -bpc
journalctl -u cpsrvd --since "12 hours ago" | grep -iE "error|fail"
# destination health
whmapi1 listips
df -h /home
journalctl -u cpsrvd --since "12 hours ago" | grep -iE "error|fail"
# DNS TTL is low
dig +noall +answer +ttl A example.com
# backup is fresh
ls -lt /backup/<date>/accounts/<user>.tar.gz | head

If any check fails, the cutover does not happen that night. Roll the schedule.

The fix

The runbook for a one-account cutover, hour-by-hour:

  1. T-24h — final pre-flight (the checks above). Confirm DNS TTL is 300s. Confirm backups are fresh. Email the customer with the maintenance window time.
  2. T-1h — final sync from source to destination. Re-run imapsync, re-run mysqldump | mysql for the database, re-run rsync for files. The destination is now within minutes of the source.
  3. T-0 — set source to read-only (rename the database user, or freeze writes at the application level). Run the final final sync. Verify the destination has the latest data.
  4. T+5m — flip DNS A and MX records to the destination. Watch dig @<ext-resolver> example.com until it returns the destination IP.
  5. T+15m — open the site in a private browser tab, log in, click through. Send a test email. Verify mail delivery and DB writes happen on the destination.
  6. T+30m — declare the cutover complete to the customer. Open monitoring for the destination at heightened sensitivity. Stay on standby for 4 hours.
  7. T+4h — first review. If clean, drop monitoring to normal. If not, work the issue.
  8. T+24h — second review. If clean, retire the source from active monitoring. Source stays read-only for 7 days as a rollback target.

Roles: the migration lead executes; comms updates the customer; customer-facing answers tickets. Each is named in the runbook by phone number. Stack Harbor runs cutover day under migration solutions — start a conversation before the runbook is finalized.