Welcome to WordPress. This is your first post. Edit or delete it, then start writing!
Category: Uncategorized
-
Moving a WordPress site without losing a single row
The hard part of a WordPress migration is not the files. It is that the database remembers the address of the site it came from.
Three things have to line up
- The database dump has to be restored as it was.
- Every URL inside it has to point at the new address.
- The files have to arrive with the same paths they had.
A plugin that exports the old address into a manifest and rewrites it on the way in turns step two into a checkbox.
-
Why we stream the archive instead of building it in memory
Most migration plugins read a whole directory into an array and then write it out. That is fine until it is not.
The chunk
Writing one file at a time, and remembering where the last request stopped, keeps the memory use flat. The work is handed to WP-Cron between requests, so a slow site never times out.
-
Looking inside a backup without restoring it
Sometimes you only need one file out of a backup. The archive browser walks the block headers of the package and shows you the tree, then hands back the contents of the file you pick.
The same reader extracts to disk when you want the whole thing.
-
Scheduled backups that actually run
A schedule is a recurrence plus an anchor. From those two numbers the next run is computed, so the plugin keeps working after a server migration.
Retention
Old archives are removed on their own. Nothing fills the disk at 3 a.m. without anyone watching.
-
SQLite and MySQL: running a backup in the browser
A MySQL dump is SQL with a few dialect habits. The playground integration rewrites them into SQLite, writes the database file and drops in the
db.phpshim.The reverse direction works too: a SQLite database becomes a MySQL dump you can import anywhere.
-
Leaving tables behind on purpose
Not every table belongs in a backup. Action statistics can be gigabytes. Session logs are noise. A table filter lets you leave them out — per backup, not per site.
The rows can be filtered as well: spam comments and post revisions are one checkbox each.
-
Cloud destinations that survive a lost server
A backup on the same disk as the site is not a backup. Sending it to a cloud account makes it one.
Uploads are resumable: an interrupted transfer continues where it stopped instead of starting over.
-
Multisite networks are not one site
On a multisite install each blog keeps its own tables, its own uploads directory and its own set of URLs. Exporting the main table alone produces a broken network.
The multisite export records the mapping of every blog, and the import replays it against the destination.
-
Accessibility is not a checkbox
The admin screens follow WCAG 2.1 AA: a skip link, visible focus outlines, semantic headings, labelled controls, live regions for progress and a layout that works down to a 375 px screen.