A WordPress zero downtime migration moves your site to a new VPS without ever taking it offline. Visitors keep reaching a working site throughout the move, because the old server stays live until the new one is tested and DNS points at it. The method takes more preparation than a simple move, but for a shop, a membership site, or any site that earns money every hour, the extra work is worth it.
How Zero Downtime Works
The core idea is simple: run two copies at once. The old VPS keeps serving visitors while you build, sync, and test the new one. Only when the new copy passes every test do you switch DNS. After the switch, the old server stays online as a fallback until propagation finishes everywhere. At no point is there a gap where no server answers, which is what zero downtime means in practice.
Two things make this tricky: files that change on the old server after your last sync, and database rows written after your last sync. The plan below handles both by syncing repeatedly and finishing with a short final sync during a low-traffic window.
Lower the DNS TTL Days Before the Move
Start at least 48 hours before the switch. Lower the DNS TTL for your domain to 300 seconds. TTL tells resolvers how long to cache the old IP address, and a long TTL means some visitors keep hitting the old server for hours after you switch. With a 300-second TTL, most visitors move to the new server within minutes of the change. This step costs nothing and cannot be skipped: a zero downtime DNS switch depends on it.
Build the New VPS and Sync the Files
Provision the new VPS, install the same stack versions as the old server where possible, and create the document root and database. Then sync files with rsync, which copies only changes on repeat runs:
rsync -avz --delete --exclude='wp-content/cache/' -e ssh /var/www/yoursite.com/ root@new-vps:/var/www/yoursite.com/
Run the sync once for the bulk copy, then repeat it later for the final pass. The –delete flag removes files deleted on the old server, keeping both copies identical. Exclude cache folders and backup archives: they are large, change constantly, and are not needed for the site to work.
If you are also changing server tooling in the same move, keep the moves separate when you can. Moving Docker containers to a new VPS covers the container side, and moving from cPanel to a free panel without downtime covers the panel side. One change at a time keeps failures diagnosable.
WordPress Migration Sync: Database Strategy
Files sync easily, but the database keeps changing while visitors browse, comment, and order. The practical approach is a two-pass sync. First, copy the database to the new server and test with it. Then, during a low-traffic window, put the old site into a brief maintenance state or pause writes, take a final dump, import it on the new server, and switch DNS immediately. The read-only window lasts minutes, not hours, and visitors see a working site throughout because the old server keeps answering until DNS moves.
For sites where even a short write pause is unacceptable, use database replication or a migration plugin with incremental sync, and test the approach on staging first. Do not improvise replication on a live shop for the first time. Test it, measure the lag, and only then rely on it.
New VPS Testing Checklist Before the Switch
Test the new copy thoroughly before DNS moves. Point your local hosts file at the new VPS IP so your browser loads the new server while the rest of the world still uses the old one, then work through this list:
- Homepage, posts, pages, and archives load without errors.
- Admin login, media uploads, and plugin settings work.
- Forms, checkout, and search complete end to end.
- SSL certificate is valid on the new server.
- PHP error log shows no new fatal errors.
- Page speed is at least as good as the old server.
Fix every failure on the new server and re-test. DNS switching is not the time to discover a missing PHP extension or a wrong file permission.
Switch DNS and Watch Closely
When tests pass, update the A record to the new VPS IP. Watch both servers: new-server traffic should climb while old-server traffic falls. Monitor uptime during the switch with an external checker, and set up alerts before you need them: installing Uptime Kuma for Docker monitoring shows one way to get alerts within minutes when a check fails. Keep the old server running for at least a week as a fallback. If a serious problem appears on the new server, flipping DNS back is fast precisely because the TTL is still low.
The same careful sequencing applies to routine updates, not just migrations. Updating Docker containers without downtime uses the same principle: build the new version first, verify it, and only then route traffic to it.
Migration Timeline at a Glance
| When | Action | Site status |
|---|---|---|
| 48 hours before | Lower DNS TTL to 300 seconds | Live on old server |
| 1 day before | Build new VPS, first file and database sync | Live on old server |
| Switch day | Test new copy, final sync, switch DNS | Live throughout |
| 1 week after | Confirm traffic moved, retire old server | Live on new server |
Mistakes That Break a WordPress Zero Downtime Migration
- Switching DNS before testing the new copy end to end.
- Forgetting to lower the TTL, so visitors stick to the old IP for hours.
- Syncing files once and never again, so the new copy launches stale.
- Deleting the old server the same day, removing your only rollback.
- Editing content on both copies during propagation, splitting the data.
After the switch, raise the TTL back to a normal value such as 3600 seconds or higher, so resolvers cache efficiently again. Then monitor for a full week before retiring the old server. A WordPress zero downtime migration is not a trick: it is a sequence of unglamorous steps done in the right order, and the reward is a move your visitors never notice.