Moving a 360 GB media library off a paid CDN
$6,000+/mo saved, with zero downtime and no broken media
- Problem
- 425,000 files across 21,000+ posts lived on a third-party image CDN that cost thousands a month.
- Did
- Wrote custom WP-CLI commands, REST processing, SQL and multithreaded Python to classify, convert, resize and re-upload every file, and rewrote post content and metadata to match, all on the live site.