DevDome Backup & Migration: full changelog
(readme.txt carries only the current release; older releases live here.)

= 1.0.2 =
* WordPress.org review, fourth round: the queries the plugin sends through `$wpdb` that took a table or column name from a variable now bind it as an identifier (%i), and a list as one placeholder per item, which needs WordPress 6.2 or newer (the plugin now requires it); the one statement that cannot be prepared, a statement of a backup's own database dump that a restore runs, is checked before it runs and says so in the code. The WordPress folders (root, content, plugins) are asked from WordPress' own filesystem class (the restore-time recovery file takes the plugins folder beside its own when that class cannot be loaded). The source of the admin stylesheet, `src/tw.css`, ships with the plugin, and the stylesheet of the shared DevDome screen is no longer minified.

= 1.0.1 =
* WordPress.org review, third round: the plugin writes nothing into the site root and generates no PHP code. A full restore no longer changes the must-use plugins folder of the site: when it does not hold the same must-use plugins as the backup it stays as it is and the ones from the backup are put beside it. The pointer file in wp-content is gone: storage outside wp-content is told by a line of text inside it. On a network the plugin is activated for the whole network (plugin header Network: true), activation never stops with a message and makes no HTTP request. Update Guard on a network no longer lifts WordPress's maintenance file: the other sites are loaded at the start of the request that updates them. Storage is refused inside wp-admin, wp-includes and the plugins, must-use plugins and themes folders. Uninstall removes only files and tables that are this plugin's.
* A backup from another site can be tested before it is restored: "Test This Restore First" prepares the whole restore in working copies, changes nothing, and lists which accounts would be made, which would get another role and which are uncertain.
* While a restored site is checked, visitors and signed-in customers keep getting the short "back in a minute" notice and cannot post comments or forms, so nothing written in those seconds is lost by a roll back. Administrators are let through, and the notice lifts itself after three minutes at most.
* Review of these fixes: a second restore or test run of the same backup waits until the accounts of the first are made. Retention checks a backup file in full when it was written to after its verification. The check after a restore no longer takes the plugin's own notice, or a page that quotes an error message, for a broken site. On very large networks addresses are replaced only where they end. A whole-network restore works with storage in its usual place again. The restore window names the plugin tables in a backup of a network's main site. Restore point folders are told by their full name. A site with a very long table prefix keeps its roles and its usage-report choice in a restore. A restore that changes a role keeps what one account was granted or denied beside it. Database triggers a restore point does not carry over are written into a file in backup storage.
* Final audit before release. A backup names what it does not hold (folders it could not read, database triggers, plugin or theme folders kept outside wp-content). A restore that keeps the accounts of the site keeps the roles that exist only there, so no account is left with a role that nothing defines; what a role of the backup may do comes back with the backup. A backup of a whole site is not restored onto a site that keeps its plugins, must-use plugins or themes outside the usual folders. The two files older versions kept in wp-content are left out of backups and restores. Storage is refused when it would hold a folder of code. Update Guard stops an update when its restore point is incomplete, and folders a restore moved aside are kept for a week. Uninstall with "delete my data" removes a backup folder only when it carries the mark of this installation, and cleans the shared DevDome settings on every site of a network.
* Health check after a restore or an update: a site in maintenance mode (its pages answer 503 on purpose) is no longer taken for a broken site, so a good restore or update is not rolled back there; it is reported as not verified and you decide. A page that stops in a PHP fatal error after it has begun is never called verified.
* DevDome Tools screen: Activate is offered only to a user who may activate that plugin, and the "connected" notice shows on DevDome screens only.
* A restore point of a whole content folder (uploads, plugins, themes; the DevDome Reset tools make these) is restored into that folder; it used to land in a nested wp-content/wp-content copy, so the undo looked done while the files stayed missing.
* A restore point whose tables no longer exist (dropped since, or a reinstalled site) is restored: the tables are recreated from the point instead of failing on the first missing one, and the safety snapshot is skipped when it would hold nothing.
* A full restore started from the browser now finishes in the background if the tab is closed or the login is lost mid-way; the site was left with every other plugin muted and the operation lock held until it timed out. One worker per restore step is enforced the same way as for backups and drills.
* Restoring an uploaded backup stopped at the table swap when tables kept from an earlier restore (24-hour recovery copies) had foreign keys. They are removed safely now, and a copy that cannot be removed stops the restore before anything changes.
* A restore, delete or restore point started while a backup was running answered "A database query failed"; it now says that another operation is running and nothing was changed.
* Overview tiles use the same number size as the other DevDome plugins; the backup list has the same Delete button as the restore points, and the schedule setting says what it does.
* Full Backups: an empty red bar no longer shows under Your Backups while nothing is wrong.
* Overview: the Last Backup tile shows a short age (21 min, 1h 24 min, 3d 2h) that fits one row; Create Backup shows only a turning ring while the backup runs and gets its label back when it is done.
* A restore gives the restored plugin, theme and upload folders the group and permissions of the folders they replace, so a web server that reads the site through a shared group keeps serving them (the admin screen lost its styles and every image failed until permissions were fixed by hand).
* After a restore point is applied, the replaced plugin or theme folder (<slug>.bak-<time>) is removed instead of staying next to the live one forever, where WordPress listed it as a second copy of the plugin.
* Undo Last Change only undoes a guarded plugin or theme update from the last 24 hours, and names it first (which plugin, which versions, how long ago). It no longer falls back to any older restore point: a verified update from days earlier would have reverted every post and setting changed since.
* The restore drill, the atomic restore and the 24-hour cleanup drop their working tables with foreign-key checks off, so tables that reference each other (security plugins, WooCommerce) no longer stay behind in the database.
* A restore of a point that covers wp_options keeps the guarded-update history of this site.
* Uploading a backup made by this plugin was refused as "entry 2 has an unknown type", so restoring or migrating from an uploaded file never worked. Fixed.
* Second review round: a restore point whose manifest could not be written (disk full) is no longer kept as if it were complete; a restore from a saved backup is refused while recovery mode is active, like every other operation; Pause on a running backup no longer rewrites the job under a progress save; the emergency recovery file is copied through a temporary name so a failed copy never leaves a half file in mu-plugins; converting a legacy upload keeps the original until the converted file is in place; forgetting a restore point and turning Update Guard on report a failed save instead of success; the Overview checklist shows storage as protected only when the check actually passed; and if the browser loses the reply to a restore start it now checks whether the restore is running instead of claiming nothing changed.
* Second review round, restore engine: a database error while rewriting site addresses stops the restore before anything is committed instead of leaving the old addresses in place; a rollback that could not fully complete stops in Needs Review instead of saying the previous site is back; the transactional table swap checks that its commit went through; a folder the restore created is removed again when the restore is reversed; the operation lock is written back after the table swap so nothing else can start while the restore finishes; an update of a single-file plugin is no longer reported missing (and rolled back) after a successful update; a guarded rollback counts as verified only with its own health check; an uploaded dump may contain row values only, never expressions; a table name quoted inside post content is no longer rewritten during import; the dump header declares the connection character set.
* After a restore from an uploaded backup the upload's session record is removed with the file; it used to stay behind and count as an upload in progress, so the fourth upload of the day was refused.
* A restore step that runs longer than two minutes (importing a large database, extracting one very large file) kept its one-worker lease alive only at the start of the step, so the background runner could take the step over and start a second import that removed the tables the first one was still filling. The import, the extraction, the verification and the permission pass now keep the lease alive as they go; the same for the drill and for a backup of one very large file.
* A crash in the first moment of the file swap (the previous folder moved aside, the restored one not yet in) left that folder parked with nothing on record; Roll Back then reported the previous site back while the folder was missing. The swap is on record before the first folder moves.
* The daily cleanup of abandoned uploads no longer removes the upload a running restore is reading.
* While the background runner holds a step, the backup progress bar no longer drops to 2% and the restore status no longer blanks.
* Update Guard: when a broken update is found while a backup, drill or restore is running, the automatic rollback is retried a minute later instead of being recorded as failed and abandoned; the Roll Back button says so too. The guard check waits while a full restore runs.
* Third review round: a database read error while dumping a table, a missing table definition or a failed write now fail the restore point instead of leaving a silently shortened dump; the recovery journal must be on disk before any table swap; the safety snapshot before a restore that also restores user accounts now includes the user tables; a restore point that could not be listed is not kept as if it protected anything; Undo Last Change reports a failed site check instead of success; uninstall with "delete all plugin data" only ever removes the plugin's own storage folder and drops its leftover tables with foreign-key checks off; the preflight dialog shows a failure instead of loading forever when the server cannot be reached.
* A full restore that could not be verified (the site cannot load itself, which is normal on single-worker hosting) stopped with every recovery copy kept and no way to continue: every later full restore was refused. The restore screen now offers Keep This Restore and Roll Back for that case.
* Fourth review round: a backup converted from the old format can be restored now (it never could); a point restore stops if its rollback copy cannot be filled; the pre-restore safety copy can no longer miss a table after a failed lookup; a backup stops at once when its entry list cannot be written; leftover work files of dead backups are cleaned up; a backup entry without a checksum is refused; archive paths using Windows aliases are refused; a refused character set stops an import instead of writing wrong text; a large database row no longer breaks the import; half-hour time zones keep their scheduled hour; an update that could not be recorded for checking is stopped; a post that only mentions "Fatal error" no longer counts as a broken site; a download that vanished answers 404 instead of an empty file; recovery mode recognises an interrupted restore point; uninstall removes every record of the plugin; a broken update that could not be rolled back automatically says so on the Update Guard tab.
* Fifth review round: Keep This Restore is offered only when the swap finished, so a half-finished restore can never delete its own recovery copies; Roll Back after a restore interrupted before its swap leaves the live site alone; a restore that created a folder the site never had removes it again when reversed; a commit that was reversed completely no longer leaves its safety copies on disk forever; a second Roll Back retries only what failed; a transactional swap removes tables with foreign keys; a restore point keeps the storage location and the uninstall choice of this site; Undo Last Change can no longer run twice for the same update; an incomplete upload reports its real size; spatial database columns are backed up as binary; a Roll Back removes its working tables, which used to stay behind, go into the next backup and make the next Roll Back fail; a long table name with a foreign key no longer stops a restore or a drill; a restore started right after a Roll Back no longer waits two minutes; Pause keeps saying Paused when a step was still finishing as it was clicked.
* Sixth review round: Roll Back after a crash in the middle of a folder swap also brings back the folder that was parked at that moment; it used to report the old site as restored with that folder missing. A backup converted from the old format is kept after conversion; it used to be deleted as an incomplete upload. Delete and Forget say why they were refused, Undo Last Change reports a lost connection instead of waiting forever, and the Update Guard tab shows an undone update as undone. An update that could not be verified offers It Works and Roll Back on the Update Guard tab too, because a notice hider removes the admin banner, and Undo Last Change waits for that choice instead of reverting the update before it. Delete All Data On Uninstall also removes the backups and restore points kept in a folder set with DEVDBACK_STORAGE_PATH; they used to stay on disk.
* The full restore dialog has an advanced option to also restore the user accounts from the backup, for moving a site here. It is off by default; until now a restore from the screen always kept this site's accounts.
* Seventh review round: Roll Back puts back only the folders its own restore parked, never one left by an earlier restore; Keep This Restore and Roll Back cannot run twice at once or beside the background restore.
* The wp-config.php reference is redacted by reading the file the way PHP reads it, and everything is replaced unless it is known to be harmless: only the value of a constant with a harmless name and the table prefix stay readable, every other text, number and comment goes (a secret constant defined inside another call, the second part of a joined value, a commented-out old password). Where PHP's tokenizer is missing the backup carries no reference copy. Roll Back takes only the copies its own restore left for proof that a folder or table is already back. The 24-hour cleanup reads its deadline again before it removes anything and stops when its lock is no longer its own.
* Full backup: before anything is written, the plugin measures what the backup needs (files, database, working room) against the free disk space and refuses with the exact numbers when it does not fit. The message says how much the older backups on the server take; nothing is deleted for you.
* Shared DevDome library 1.7.17: the connect beacon's flood guard counts an IPv6 visitor per /64 network, and the one-click install of another DevDome plugin verifies the downloaded package against the published checksum before installing.
* Update Guard tells your DevDome account when a guarded plugin or theme update starts and ends, so the Site Health uptime alerts stay quiet while the update runs (plus a two-minute grace). Only on a connected site; see External services.
* First activation opens the plugin's screen once: the DevDome Account card until the site is connected. Bulk activation and WP-CLI never redirect.
* Shared DevDome library 1.7.16: after connecting, the screen you land on says which account the site is connected to and the one next step.

= 1.0.0 =
* First WordPress.org release.
* Shared DevDome core 1.7.11 now ships in every edition (DevDome Tools dashboard, "Report this error" button, optional account connect card in Settings); on a subdirectory multisite a site mapped to its own domain now keeps its own site identity.
* Database guard: every admin action, REST request and page render records failed database queries and refuses to report "done" or write settings over one; settings writes are proved by reading the row back.
* Overview shows a plain status circle instead of a score number; the header verdict pills are gone.
* Listing text rewritten around update rollback, restore points and undo update.
* WordPress Plugin Check: the file writes a restore makes inside wp-content and the table-name queries are annotated with their reasons; the readme states what the plugin writes inside wp-content.

= 0.7.1 =
* Connect fix (shared DevDome core 1.6.6): the connect claim now waits up to 30 seconds and keeps the handshake for 20 minutes so a refresh retries it, the DevDome hub shows why a connect failed with a Try again link, and the verify file is served through a query form for hosts that answer /.well-known/ before WordPress.

= 0.7.0 =
* Full code audit before the WordPress.org submission. Fixed: the default full restore (accounts kept) aborted on the database step because the dump's user-table statements were refused instead of skipped; every database dump replaced `%` characters with a per-process placeholder token, corrupting permalinks and serialized data on restore; Update Guard never verified or rolled back updates started from the Plugins screen, the Updates screen or WP-CLI (WordPress reports those as bulk updates); rollbacks could never be reported as verified; a backup resumed after a crash always failed its final verification; the operation lock and job lease were not atomic; the lease was never refreshed during long database dumps; the no-login recovery link could not find storage placed outside the web root; a restore that died could leave every other plugin muted forever; the source site's storage location survived a migration and pointed the engine at the wrong folder; full backups dumped every table in the database instead of this site's; the restore drill and the atomic swap failed on tables whose working-copy name exceeded the 64 character database limit (WooCommerce download permissions, for example); scheduled backups were skipped whenever WP-Cron ran late; the delete-on-uninstall choice had no switch; several smaller correctness and hardening fixes (SQL mode allowlist, foreign-key constraint names, composite primary keys, generated columns, short writes, wp-config redaction, canary verdicts, environment fingerprint, admin-ajax exposure).
* Removed the opt-in failure email (the plugin no longer composes or sends mail; outcomes are in the activity log).
* Identifiers moved to the single-token `devdback_` prefix; suite-specific code stripped from the WordPress.org package; styles shipped as readable CSS; every JavaScript string translatable; REST URLs work on plain permalinks.

= 0.6.2 =
* Design: Overview status card in the suite style (Protection ring, actions, four tiles), sticky Save Settings footer, darker readable text, suite dialogs instead of browser prompts, shared core library updated to 1.6.3. Progress bars show Pause and Cancel; a running backup can be paused and resumed.

= 0.6.0 =
* Storage is now placed OUTSIDE the web root on new installs where the host allows it. Existing installs keep their current folder: moving it would strand backups already written.
* The web-exposure canary probes what a backup actually looks like (.ddbak, .txt and a dotfile), busts caches on both sides, and its verdict now expires and is bound to the server it was measured on. A verdict from a previous host no longer authorises anything.
* Exposed storage blocks backups outright, and the risk acknowledgment expires after 90 days instead of lasting forever. Moving host re-arms the block.
* The no-login emergency recovery token is withheld entirely while storage is readable over HTTP: the token file itself would have been downloadable.
* A configured storage path constant is structurally validated (absolute, canonical, no symlinked escape into a critical tree, atomic-rename capable) and refused with a clear reason instead of being used blindly.
* Uploaded backups: site-configurable ceilings on archive size, manifest size, file count, table count and total uncompressed bytes; full manifest schema validation (path safety, duplicate paths, ascending offsets, entry bounds, reserved-entry counts) before anything is acted on; session rate limits; atomic session state with a generation guard; ownership re-checked on every action including discard.
* Update Guard: each update item now has its own option, its own immutable attempt id and its own debug.log baseline, so overlapping and bulk updates can no longer overwrite each other's state or misattribute a fatal.
* Update Guard verification no longer accepts a cached front page as proof. Only the first-party fresh-boot marker counts, and the meaningless admin-ajax heartbeat probe was replaced with a real admin bootstrap check.
* Rollback outcomes are typed: only rolled_back_verified claims your site is back. An unconfirmed rollback says so and keeps its artifacts.
* The guard check runs under an atomic lease, so the same update can never be verified or rolled back twice.
* The backup list is built as DOM nodes rather than HTML, every JavaScript string is translatable, and a DOM-XSS test suite runs hostile archive data through the real renderer.
* Documentation corrected: what a backup file actually contains, that user accounts are kept by default, that an unrunnable health check is not a pass, that Windows support is unproven, and that a restore leaves recovery artifacts for 24 hours.
* New fault-injection test suite (short writes, full disk, non-durable flush, failed promote, truncation, corruption) and a CI matrix. The release gate now runs every suite itself.

= 0.5.0 =
* Update Guard: per-item pending records (bulk-update safe), a cache-proof one-time verification endpoint, explicit onboarding preflight, honest verified/broken/could-not-verify states.
* New DDBAK2 archive format: per-entry SHA-256, footer-verified manifest, checked writes, and a full re-open verification pass before any backup is listed as complete. Legacy archives convert before restoring.
* Full restore rebuilt: mandatory verified pre-restore snapshots, strict SQL statement allowlist, object-safe URL search/replace on shadow tables, staged file extraction with canonical path checks, one journaled atomic commit (grouped RENAME TABLE + directory swaps), kept-until-verified rollback artifacts, safe cancellation.
* One exclusive operation lock (atomic acquisition, heartbeat, stale recovery) shared by every operation.
* Secure storage: out-of-webroot by default where the host allows it, web-exposure canary with blocking warning, validated custom storage path, redacted wp-config reference, no-store downloads.
* New free features: scheduled local backups, Restore Drill, expanded WP-CLI with JSON output.
* Emergency recovery mu-plugin is now static readable source and explicit opt-in (never auto-installed).
* Identifiers migrated to a plugin-specific family with a one-time, loss-free data migration from 0.4.x.

= 0.4.9 =
* Expanded External services disclosure.

= 0.4.8 =
* Readme copy polish.

= 0.4.7 =
* Design only: the Backup and Restore tabs now use the shared DevDome suite styling, and the Update Guard toggle is a proper suite switch. No change to backups, restores or any behavior.

= 0.4.6 =
* Safe Mode now genuinely pauses everything it claims: creating restore points, restoring points, full-site restores and full-site backups are all refused with a clear "Recovery mode is active" message while it is on.
* The emergency recovery link's flag file is honored everywhere, with a hard 30-minute expiry.
* Failure emails (opt-in) are also sent when a manual restore or a full-site restore fails or is rolled back.
* Update Guard status: an aborted update shows an amber "aborted" state instead of a green "All good".
* Retention also prunes old full-site backup archives beyond the configured count (the newest backup is never deleted); full-site backups refuse to start on low or unmeasurable free disk space.
* Settings simplified to one form with one Save; removed the free-disk headroom setting (fixed at 15%, filterable) and the admin-IP pinning feature.

= 0.4.5 =
* Full-site backup and restore: one-click chunked backup of the database plus all of wp-content into a single downloadable file, with live progress and cancel.
* Restore or migrate from a backup in resumable phases with a pre-restore snapshot, post-restore health check, and automatic revert on failure.
* A file-based restore token keeps the chunked restore authenticated after the database swap invalidates the login cookie.

= 0.3.8 =
* Fix: downloading a large backup could fail with a 502 / "memory exhausted" error; downloads now stream with constant memory.

= 0.1.2 =
* Code quality: cleared all WordPress Plugin Check errors.

= 0.1.1 =
* Flush the object cache (and reset OPcache) after a database swap so a restore/rollback takes effect immediately on Redis/Memcached hosts.
* Apply the dump's session settings during the shadow import so restores of databases with foreign keys succeed.
* InnoDB single-transaction restore fallback for hosts where RENAME TABLE is unavailable.
* Re-verify staged files against the manifest before swapping them in.

= 0.1.0 =
* Initial release: Update Guard (restore point, verify, auto-rollback), atomic shadow-swap database restore, staged file restore, resumable charset-safe database snapshot, no-login emergency recovery, disk-space guard, manual + full snapshots, WP-CLI, hub + Site Monitor integration.
