Case Study
A news publisher needed its main WordPress site, plus a smaller second site, moved from a managed VPS to a new server stack. The main site held 76,548 posts and about 39 GB of uploads in 618,800 files, and it kept publishing while we worked. We copied it twice, counted both sides at each step, and the final switch only had to move what had changed.
October 2026 · 5 min read
SECTOR
News publisher with a second, smaller WordPress site
SCALE
41 GB, 76,548 posts, 618,800 files, 1.36 GB database
PLATFORM
Oracle Linux 10, HAProxy, nginx, PHP-FPM, MariaDB 11.4, Cloudflare
ENGAGEMENT
WordPress server migration
Posts, the same count on both servers at go-live
Files and folders copied, matched entry for entry
Server errors (5xx) in the go-live sweep of 274 requests
Scroll the diagram sideways to see all of it →
Both passes ended with the same check: count the tables, rows and files on each side before moving on.
A big site that could not stop for long. The main site was a news archive: 76,548 posts, 1.38 million rows of post metadata and about 39 GB of images, spread over 618,800 files. A smaller second site came along with it. The new home was a virtual machine with HAProxy in front of nginx and PHP-FPM, MariaDB 11.4 and Cloudflare in front of everything. A migration this size usually goes wrong in one of three ways: the copy is quietly incomplete, the new server behaves differently from the old one, or the switch takes longer than anyone planned. We built the job around catching each of those before the DNS change, not after.
Two passes, and a count after each. On the evening of 28 October we streamed the database across with mysqldump --single-transaction, which reads a consistent snapshot without locking the live site, and imported it in 2 minutes 23 seconds. The files followed with rsync, pulled from the new server and capped at 25 MB/s so the old server kept serving readers: 40.99 GB in 26 minutes 23 seconds. Then we counted. All 203 tables and 4 views were present on both sides, and all 621,636 file and folder entries matched, with the same owners. The copy was tested privately by pinning the hostnames to the new server with curl --resolve, with outbound PHP connections switched off so a test copy could not send mail or call out while two copies of the site existed.
Count both sides after every step, and the switch has nothing left to surprise you.
Small differences that would have looked like outages. rsync carries permissions exactly, and the old document root had mode 2711: other users could pass through it but not read it. On the new server nginx runs as its own user, so the first private test returned 13: Permission denied. A chmod 2750 fixed it, two days before any reader could have seen it. A post that was published on the copy during testing was the second reminder: the final database import replaces everything, so nothing done on the copy survives go-live. The third was a design choice, not a fault. We had built and tested a Varnish cache behind HAProxy, but Cloudflare was already caching the pages at its edge, and the customer chose to keep that and skip the extra layer. Varnish was left installed and switched off, so the live path is Cloudflare, HAProxy, nginx, PHP-FPM and MariaDB.
Move a 41 GB, 76,548-post WordPress news site and a second site to a new server stack, without a long publishing stop.
Bulk copy two days early, compare tables, rows and files, test privately, then a short final sync and database import on the day.
Post counts identical at go-live, all 621,636 file entries matched, and no 5xx in the go-live sweep.
--dry-run --delete showed exactly what the final sync would change, before it changed anythingAbout 36 hours from first login to go-live. Both sites now run on the new stack, and the smaller site moved from PHP 8.1, which is past end of life, to PHP 8.4 the same day. The old server was left in place with its full copy as the way back. Three limits are worth stating. We did not measure downtime: publishing was paused by agreement for the final sync, so we do not claim there was none. We have no before and after speed comparison, because response times on the old server were never measured. And our review afterwards found that the main site’s PHP error log pointed at a folder its PHP user could not write, so no PHP warnings were being recorded for it. A quiet log looked like a healthy site. The fix was flagged. The lesson: before you trust a log that says nothing, make sure something can write to it.
We plan migrations around counts, not hope: copy early, compare both sides, test privately, and keep the switch short.