Case Study

Moving a 41 GB WordPress news site: 76,548 posts, every row and file counted

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

76,548

Posts, the same count on both servers at go-live

621,636

Files and folders copied, matched entry for entry

0

Server errors (5xx) in the go-live sweep of 274 requests

Environment

The migration in two passes: a bulk copy two days before, then a small final sync on go-live morningPass one, 28 October: the database was streamed across in 2 minutes 23 seconds, 41 GB of files copied in 26 minutes, tables, rows and file entries compared, and the copy tested privately. Pass two, 30 October: a dry run then the real file sync of the changes, a final database dump and import in about 2 minutes, post counts compared, then the DNS switch.Copy everything once. On the day, move only what changed.PASS 1 · 28 OCT · BULK COPYDatabasestreamed, 2 min 23 sFiles41 GB in 26 minCompare207 tables, 621,636 entriesTest privatelyhosts pinned, no DNSPASS 2 · 30 OCT · GO-LIVEFile syncdry run, then realFinal databasedump and import, 2 minCount again76,548 posts each sideDNS switchold cron off, new onThe first pass took the time. The second only had to carry two days of changes.

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.

The brief

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.

The method

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.

What the checks caught

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.

At a glance

Challenge

Move a 41 GB, 76,548-post WordPress news site and a second site to a new server stack, without a long publishing stop.

Approach

Bulk copy two days early, compare tables, rows and files, test privately, then a short final sync and database import on the day.

Result

Post counts identical at go-live, all 621,636 file entries matched, and no 5xx in the go-live sweep.

The go-live

  1. Dry run first: at 07:31 on 30 October an rsync --dry-run --delete showed exactly what the final sync would change, before it changed anything
  2. Final sync and database: the real sync ran at 07:33 and finished cleanly, then a fresh dump and import of both databases took about two minutes
  3. Count again: 76,548 posts and 1,380,178 post metadata rows on both sides. The options table differed by two rows, 1,192 against 1,194, the kind of difference a live site makes on its own between two reads
  4. Switch, then stop the old jobs: the customer changed DNS at about 07:48 and turned off the scheduled jobs on the old server, so the two copies never both ran them. WordPress’s scheduled tasks were enabled on the new server at 08:01
  5. Check from outside: a sweep of 274 requests against the live sites returned no 5xx, and test mail from the new server was accepted by Gmail

Outcome

About 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.

More case studies

Live SAN Migration

60+ VMs migrated live

Migration Blamed the Character Set

60 / 60 tables matching row for row

99 cPanel Accounts Moved to CloudLinux

36 min to transfer 99 accounts and 178 GB

Moving a large WordPress site?

We plan migrations around counts, not hope: copy early, compare both sides, test privately, and keep the switch short.