DevDome Backup & Migration: WordPress Backup Plugin

By DevDome

0+ active installationsVersion 1.0.2

Free. Full site backup and database backup, scheduled or on demand. Restore or migrate your site, with automatic rollback if a plugin update fails.

Description

Update Guard provides update rollback for plugin and theme updates. Once enabled, it creates a restore point before each supported update, including single, bulk, automatic and WP-CLI updates, then verifies your site with a fresh uncached load. This auto rollback happens only on a confirmed failure. You can also undo update changes with one-click “Undo last change”. Updates of DevDome Backup & Migration itself are excluded.

For full-site backup and restore or site migration, save your database and wp-content in one checksum-verified .ddbak archive. Restore a saved or uploaded backup with serialization-safe URL replacement for migration. Every restore starts with a site snapshot for safety, prepares the database in shadow tables and files in a staging folder, then switches the database in one grouped rename and the folders one after the other, each step journaled and reversed on failure. A confirmed failure in the post-restore health check triggers automatic rollback.

The backup scheduler runs a daily, weekly or monthly scheduled backup with configurable retention, and use Restore Drill to check archive integrity, trial database import and trial file extraction without changing your live site. Backups stay on your server and can be downloaded for disaster recovery. DevDome Backup & Migration is completely free, requires no DevDome account and has no feature paywalls.

Update Guard

  • Restore point before every update; the update is stopped if one cannot be created.
  • Post-update verification via a temporary first-party endpoint (cache-proof: a one-time token that exists only while an update is pending), the front page, wp-admin and the error log.
  • Automatic rollback only on a confirmed failure. “Could not verify” is reported honestly: never a silent green, never a guessy rollback.
  • One record per update item, so bulk updates cannot overwrite each other’s state.
  • Explicit onboarding: a 30-second preflight (storage, disk, database, loopback) before you enable protection.

Full backups, restore & migration

  • One-click chunked backup of the database plus all of wp-content into a single .ddbak file. Every write is checked, and the finished archive is fully re-read and checksum-verified before it is ever listed as complete.
  • Consistent database snapshots (single point in time) on InnoDB; honestly labelled best-effort otherwise. Views are excluded explicitly, never dumped as fake tables. Database triggers, stored procedures, functions and events are not part of a backup either; a trigger on one of the site’s tables is named in the log of the backup and in the backup’s own record. Only tables belonging to this site’s table prefix are included.
  • Restore or migrate from an uploaded or saved backup: full archive re-validation, database imported into shadow tables through a strict SQL allowlist, URLs rewritten (serialization-safe, objects never instantiated) on the shadow tables, files extracted into an isolated staging area with canonical path checks, and only then the commit: a single grouped RENAME TABLE, then same-filesystem directory swaps one after the other, every step journaled and reversed on failure.
  • A mandatory safety snapshot of your CURRENT site is taken before any restore begins (the database with a checksum, the code folders compared by number of files and size); if it cannot be created, the restore refuses to start.
  • While a full restore of a site runs, its other plugins are switched off, and visitors see a short “back in a few minutes” notice (HTTP 503) instead of the pages: a plugin that decides who may read a page is off too, so the pages are not shown without it. Signed-in administrators see the site. It ends by itself when the restore is finished, cancelled or rolled back.
  • Typed-hostname confirmation before any full restore.
  • Your user accounts are KEPT by default during a full restore: restoring an old users/usermeta table would revive deleted accounts, resurrect old password hashes and could lock you out of your own site. Restoring them is an explicit opt-in, and the choice is recorded in the activity log.
  • Restore Drill: check that a backup is restorable (archive validation, trial database import into throwaway tables, trial file extraction into a staging folder) without touching your live site. It exercises the real import and extraction paths, so it catches a corrupt or truncated archive; it is not a full rehearsal of the commit and rollback steps, so a passing drill is strong evidence rather than a guarantee.
  • Scheduled local backups (daily/weekly/monthly, quiet hour), configurable retention, activity log.
  • WP-CLI: wp devdback create|backup|list|verify|restore-drill|restore|restore-status|undo-last|update-guard status|unlock, each but unlock with --format=json. verify ends with exit status 1 when the check failed.
  • Optional no-login emergency recovery link (explicit opt-in, see below).

What this version does NOT do (honesty section)

  • On a multisite network: a network of subdomains is not turned into a network of subfolders, or the other way round. Two networks are not merged into one. A backup of a whole network is not restored onto a single WordPress site: the destination must already be a network of the same kind.
  • Windows/IIS hosting is not a tested configuration. The code handles Windows path and file-handle behaviour deliberately, but the automated suite runs on Linux, so Windows support is unproven rather than verified.
  • A full backup leaves some folders and tables out on purpose, and the backup itself names them. See the FAQ “What does a full backup leave out?”.
  • No backup encryption yet and no off-site storage: backups stay on your server; download them somewhere safe. A backup file is not redacted. It contains your database as-is: user accounts and password hashes, email addresses and any other personal data your site stores, order and customer records, plus whatever API keys, SMTP passwords and licence keys your plugins keep in the options table. wp-config.php is excluded, but plenty of credentials live in the database rather than in it. Treat a .ddbak file exactly like a copy of your site’s password list.
  • A restore deliberately leaves recovery copies behind for a time. See the FAQ “What does a restore leave behind?”.
  • Updates of this plugin itself are not guarded (a tool cannot safely roll back its own running code).
  • No email notifications. Outcomes are shown in the plugin’s activity log and on the Update Guard screen; the plugin never composes or sends mail.

External services

Backup & Migration’s own features (restore points, Update Guard, full backups, restores, migrations, scheduled backups, the restore drill) run entirely on your own server. Their only HTTP requests go to your own site (loopback): post-update verification, the post-restore health check, and a storage-protection self-test that confirms your backup folder is not directly downloadable. If your host blocks loopback requests, those checks report “could not verify” and nothing is rolled back automatically. No backup, restore point, file or table ever leaves your server through this plugin.

Error reports (devdome.com), only when you press “Report this error” on an error message. The plugin sends the error text, the plugin, bundled library, WordPress and PHP versions, whether the site is a multisite, the site locale, the screen you were on, its own state (Update Guard and schedule settings, storage test result, counts and flags, the last 20 lines of its activity log with paths and tokens redacted, never a backup’s contents), your site address, the generated site ID, your DevDome account ID if the site is connected, and your admin e-mail (so support can reply) to https://devdome.com/api/plugin/error-report. Nothing is sent unless you press the button. Service provider: DevDome. Terms: https://devdome.com/terms-of-service Privacy policy: https://devdome.com/privacy-policy

Usage reports (devdome.com), only while “Help improve DevDome” is ticked in Settings (off until you tick it). After each backup, restore point, restore or restore drill finishes, and when a guarded update fails or cannot be checked, the plugin sends one report to https://devdome.com/api/plugin/telemetry: the plugin, bundled library, WordPress and PHP versions, whether the site is a multisite, a hashed site id (a SHA-256 of your home address with a random per-site salt; the address itself is never sent and cannot be recovered from the hash), the names and versions of your active plugins and theme, the job type, how long it took and a failure code when it failed. Never file contents, paths, e-mail addresses, your site address or visitor data. Untick the box to stop. Service provider: DevDome. Terms: https://devdome.com/terms-of-service Privacy policy: https://devdome.com/privacy-policy

Uptime quiet window (analytics.devdome.com), only on a site connected to a DevDome account, only while Update Guard runs a plugin or theme update. Right before the update the plugin sends the site id and site token to https://analytics.devdome.com/api/plugin/maintenance so the DevDome uptime monitor holds its alerts for 20 minutes, and once more when the update is over to end that window. Nothing about your visitors or content is sent. A window you set yourself in the DevDome dashboard is never shortened. DevDome: Terms of Service, Privacy Policy.

Plugin catalog (devdome.com). The DevDome Dashboard inside wp-admin fetches the list of DevDome plugins (names, descriptions, logos, links) from https://devdome.com/wp-plugins/catalog.json at most once every 12 hours (one hour after a failed fetch), so the list stays current. Only the bundled core version is sent in the request; no site or visitor data. Service provider: DevDome. Terms: https://devdome.com/terms-of-service Privacy policy: https://devdome.com/privacy-policy

The plugin bundles the shared DevDome suite library that powers the DevDome Tools dashboard. What that library may contact depends on the edition you are running; on the WordPress.org edition nothing is contacted before you act; the self-hosted edition also checks for updates as described below.

WordPress.org edition

The WordPress.org package carries a build marker that keeps the library’s bot-detection feed download permanently off and contains no self-hosted updater; updates come only from WordPress.org. Besides the requests above (error reports you send, the plugin catalog), the only other request the shared library can make is the optional account connection below.

Connecting a DevDome account (optional, both editions)

The DevDome Tools dashboard and this plugin’s Settings tab offer connecting a free DevDome account (used by other DevDome plugins for optional email alerts; Backup & Migration’s own features stay local and send nothing after connecting, except the uptime quiet window of a guarded update and, when you tick Help improve DevDome, the optional usage reports, both described above; the shared library performs only the checks described here). Nothing is sent until you press the Connect button. If you do connect: the shared library sends your site address, a generated site ID and a generated secret site token to analytics.devdome.com/api/plugin/connect/start and /api/plugin/connect/claim to link this site to your account; afterwards it confirms the connection with api.devdome.com/plugin/account (site address plus the site token in a request header) normally at most once every fifteen minutes while a DevDome screen is open (sooner right after connecting, and after ten minutes when a check failed), and tells api.devdome.com/plugin/disconnect when you disconnect. When you connect from a Connect card that states this before you press the button (the DevDome Tools dashboard and this plugin’s Settings tab), those account checks also carry the slug and version of each active DevDome plugin on the site plus the bundled DevDome library, WordPress and PHP versions, so your DevDome account can show your sites and their DevDome plugins for support and update notices. Nothing about other plugins, users, email addresses, content, backups or visitors is included. Sites connected before this was introduced, and sites connected from a button that does not show that text, do not send the list. Disconnecting stops the checks and the plugin list. Terms: https://devdome.com/terms-of-service. Privacy: https://devdome.com/privacy-policy

Self-hosted edition only

  • https://api.devdome.com/plugin-updates/devdome-backup-migration.json: the self-hosted update manifest, checked from wp-admin and cron (never on front-end requests), cached six hours, ten-second timeout. The request sends no site data; it is a plain download. The updater validates the manifest and, when it publishes a checksum, verifies the downloaded package before installation; on any failure the installed version keeps working.
  • https://api.devdome.com/bot-protection/*: the shared once-daily bot-detection reference lists used by other DevDome plugins. A one-way download; no data about your site or visitors is sent.

Privacy & storage

  • Backups and restore points are stored on your own server. On a new install the plugin puts them outside the web root where the host allows it (the folder name is randomized and starts with devdback-); otherwise they go in a folder under wp-content/ with Apache/IIS deny rules. Those deny rules do nothing on Nginx or LiteSpeed, and a hard-to-guess folder name is not access control, so a loopback canary test fetches a probe file back to check whether the folder is really unreachable. If it is readable, creating backups is blocked until you move storage or explicitly accept the risk, and the no-login recovery token is withheld. Move storage yourself with the DEVDBACK_STORAGE_PATH constant or the devdback_storage_path filter.
  • Downloads run through capability- and nonce-protected endpoints with no-store headers, never a guessable URL.
  • The plugin writes nothing into the site root, wp-admin/ or wp-includes/, stores no data in its own plugin folder and generates no PHP code (the index.php in its storage folder is the usual two-line comment file that keeps the folder from being listed). Every place it does write is listed in the FAQ “Where does the plugin write files?”.
  • User accounts are never restored unless you explicitly ask. One case changes roles without that choice: a backup brought from another site. The FAQ “What happens to user accounts in a restore?” has the details.
  • Deleting the plugin keeps your backups and settings by default (backups are assets). Tick “Also delete all plugin data” under Settings before deleting the plugin if you want the settings table, options, restore points and backup archives removed as well. Deactivating never deletes a backup or a setting (it removes the optional recovery must-use file and ends recovery mode).

Optional must-use plugin (explicit opt-in): see the FAQ “What is the optional recovery file in mu-plugins?”.

Why direct filesystem access: the engine streams multi-GB dumps and archives in chunks and relies on atomic same-filesystem rename() for its stage-then-swap commits. WP_Filesystem cannot stream and its move() is not atomic for directories; those specific low-level calls are deliberate and annotated in the source, and everything else uses the WordPress APIs.

Source code

Every file of this plugin is shipped readable. Nothing is minified or obfuscated.

  • assets/js/dbm-admin.js and assets/js/dbm-backups.js are hand-written JavaScript, their own source, with no build step.
  • assets/devdome-tools-tw.css, the stylesheet of the plugin’s screens, was generated with Tailwind CSS 3 from src/tw.css, which is included and defines the component classes (.dd-...). No package.json or build tooling is included. Command for the standalone Tailwind CLI (https://github.com/tailwindlabs/tailwindcss/releases/tag/v3.4.19), from the plugin folder:

    tailwindcss -i ./src/tw.css -o ./assets/devdome-tools-tw.css –content “./includes//*.php,./assets/js//*.js”

These globs are the whole Tailwind configuration. The shipped file is the build of 2 September 2026; a build made today also emits the utility classes of today’s files, so it is not byte-identical.

  • lib/devdome-core/assets/hub.css (the shared DevDome screen) began as a Tailwind CSS 3 build. Its input is no longer kept, so this file is the source now: plain CSS, edited directly.

Installation

  1. Install and activate the plugin.
  2. Open DevDome > Backup & Recovery.
  3. On the Update Guard tab, run the preflight and enable protection. Updates are now reversible.
  4. Create your first full backup on the Full Backups tab and download it.

FAQ

Is my site 100% safe with this?

No tool can promise that, and this one never will. It makes updates and full restores reversible (the database is switched in one grouped rename, the folders one after the other, each step on record), and it refuses to run rather than run unsafely. It is a recovery tool, not a guarantee. Retention never removes the last complete backup, and counts a backup as that only while its file has its listed size, a readable end record and no write since it was verified (a file written to since, or listed by an earlier version without that time, is checked in full first, and is kept while that check has not finished). A disk that changes bytes without a write is not seen by retention: the Restore Drill reads a backup in full and is the proof for that.

What happens if a restore is interrupted half-way?

Nothing is written to your live site until every piece is staged and verified; the commit itself is a journaled set of renames that is reversed on failure. Before the commit, cancelling or crashing leaves your site untouched. After it, the replaced tables and directories still exist and are swapped back automatically if verification fails.

Could a restore lock me out?

User accounts are never restored by default. If you explicitly restore users and no administrator exists afterwards, only the account that RAN the restore is re-elevated, never an arbitrary user.

What happens to visitors while user accounts are replaced?

A restore that replaces the user accounts (a whole network moved onto another one, or a restore where you chose to restore users) swaps those tables only while no other request of the site is running. For those seconds visitors and commands get a short “being restored” answer and can try again. If other requests are still running, the restore waits and tries again, and it ends without changing anything when the site stays busy. Such a restore is refused on a site whose database class was replaced by a wp-content/db.php drop-in (read replicas, several database servers), and it waits in vain while another application keeps connections to the same database. Installations with several web servers must share one wp-content folder; a restore replaces files only where it runs.

What does Update Guard cover?

The plugin/theme being updated plus your posts, options and post meta (and, best-effort, the updating plugin’s own detectable custom tables: the tables called by the plugin’s name, or by that name and an underscore). Not covered: updates of WordPress itself, undetectable custom tables, media uploads, single-file plugins (one file with no folder of its own), and updates of this plugin itself. When several updates were installed together and the site then fails, they are taken back one after the other, newest first, until the site answers again; an update that was not the cause can be among those taken back. A roll back that Update Guard makes by itself keeps the folder it replaced for a week in the backup storage folder, in case the updated plugin had written files of its own into it. A database trigger on a restored table, and a foreign key of another table that points at one, are not carried over by a restore point; the result of the restore names them, and a file in the backup storage folder (triggers-<time>-<letters>.txt) holds the statement that makes each trigger again.

Why was my update stopped?

Because a restore point could not be created (usually low disk space). With nothing to roll back to, stopping the update is the protection. Free up space and update again.

Does it work on a WordPress multisite network?

Yes. Activate it for the whole network (Network Admin, Plugins, Network Activate). On a network it is used by super admins only.

  • Every site has its own Backup & Recovery screen. A backup made there holds that site alone: its own database tables and its uploads. Restoring it never touches the other sites, the user accounts, or the plugins and themes the network shares. The one exception, for the main site, is the next point but one.
  • On the main site you can also back up the whole network into one file and restore it there, by hand or on a schedule. Not on an installation that holds more than one network: a backup of “the whole network” would hold the tables of all of them, so there the sites are backed up and restored one by one.
  • A backup of the main site alone holds every table under the network’s own table prefix that is not a numbered site’s and not one of the network’s own tables. A plugin that keeps data of the whole network under that prefix (BuddyPress keeps its messages and groups there) has that data in the main site’s backup, and a restore of that backup puts those tables back as they were then, for every site. The restore window lists the tables of plugins such a backup holds before you confirm.
  • A restore of the whole network that keeps the accounts also keeps who is a super admin and what each role of each site may do, as they are at the moment of the restore.
  • A backup of the whole network can be restored on another network of the same kind (subfolders or subdomains): another address, another server, another table prefix. That network is then replaced by the one in the backup, with its user accounts. Every site gets its address on the new network, and a site with a domain of its own keeps that domain. Before anything starts you see each site’s old and new address. Afterwards every site is loaded and gets its own result.
  • One site can be restored out of a backup of the whole network, on that site’s own screen, without touching the other sites (for the main site, the point about its tables above holds here too).
  • A site’s backup can be restored somewhere else: on another site of the network, on another network, or on a single WordPress site. A single site’s backup can be restored onto a site of a network. The users of the backup are matched to the accounts that exist there by login and email. Accounts that are missing are created after the restore has been verified, with the role they had. An account that shares only the login or only the email is not given a role; you decide. The posts and comments of that user of the backup are attributed to that account all the same, so look at the accounts listed as uncertain before you keep the restore.
  • Network Admin has a Backup & Recovery page with every site at a glance: its own newest backup, the newest backup of the whole network that holds it, its schedule, the storage it uses, and whether it needs you (no backup that can be used, the last backup failed, a schedule that is more than a day late, a restore that waits for your decision). One button shows only the sites that need attention.
  • The same page shows the storage of the whole network: backups of single sites, backups of the whole network, restore points, the copies a restore keeps until you have decided (never removed to save space), backups of sites that no longer exist, and the free space on the disk.
  • Backups of a site that was removed from the network are listed there too, and can be moved to another site to download or restore them.
  • Before a whole network is moved onto another one you can test the move there first: the backup is verified, brought into working copies, given its new addresses and checked against the plan, and every file is staged. Then the working copies are removed again. Nothing on the network is changed and no plugin is switched off. A test cannot show that the sites load at their new addresses, because nothing is switched; the real move checks every site after the switch.
  • Update Guard and restore points work for the whole network, from the main site’s screen. A restore point there holds the plugin or theme folder and the settings, posts and pages of every site. Before and after an update the sites where that plugin or theme is active are loaded: all of them on a network of ordinary size, as many as answer within a few seconds on a very large or slow one, and the result of the update then says how many were not checked (for an update started from the WordPress update screens or with WP-CLI; in a list of several updates the other sites are loaded for the first one, and when another tool runs the update only the main site is checked). If a site that worked before answers with an error after the update, the update is rolled back for the whole network.

Where does the plugin write files?

  • Its backup folder: outside the web root where the host allows it, beside the WordPress folder; otherwise a folder with a randomized name below wp-content/. On a multisite network it is one folder for the installation with a folder for each site in it (site-<id>), so a backup of a network never depends on one site’s uploads folder. Storage is refused inside wp-admin/, wp-includes/, the plugins, must-use plugins and themes folders, and anywhere in the WordPress folder that is not below wp-content/. The short-lived Safe Mode flag is kept inside the backup folder.
  • Inside that folder, two lines of text (.install) name the installation it belongs to. That is how the optional recovery must-use plugin finds the right folder without the database. If you move storage with the devdback_storage_path filter, set the DEVDBACK_STORAGE_PATH constant too: the recovery file can read a constant but not a filter.
  • In wp-content/mu-plugins/: the optional recovery file, and during a restore the two temporary files described in the FAQ “What is the optional recovery file in mu-plugins?”. Each is a copy of a file that ships with the plugin.
  • During a restore, what the backup holds: the plugins/, themes/, uploads/ and languages/ folders and the loose files of wp-content/ itself (drop-ins such as object-cache.php). The previous copy of each is parked beside it (<name>.devdback-old-<time>) until you keep the restore or roll it back. A full restore replaces the plugins/ folder and keeps the running copy of this plugin in it.
  • Must-use plugins are handled with extra care: a restore never adds, changes or removes a must-use plugin of yours in the folder of a running site (the plugin’s own temporary files described in the FAQ about the optional recovery file come and go there). When it holds the same must-use plugins as the backup, nothing happens. When it does not (also on a new site that has none yet), it stays as it is and the ones from the backup are put beside it (wp-content/mu-plugins.devdback-from-backup-<time>) for you to copy from; the result of the restore says so.
  • Nothing is written into the site root, wp-admin/ or wp-includes/, and the plugin keeps no data in its own folder. One thing does touch that folder, because it is part of plugins/: a full restore, or a restore point of the whole plugins folder, replaces plugins/ with the one from the backup. The copy of this plugin that is running is put into the folder that is about to take its place before the swap (or, when that cannot be done, right after it, through the temporary names plugins.devdback-self-in and plugins.devdback-self-out beside the folder). Uninstall with “delete my data” removes a backup folder only when it carries the mark of this installation, on a single site and on a network alike.
  • Restore points work beside the folder they restore: <name>.devdback-staging-<time> while the files are prepared, <name>.bak-<time> for the copy that was replaced (removed when the restore is kept), <name>.reverting-<time> during a roll back. A file brought in by a full restore takes its place through <file>.devdback-new-<time>.
  • Inside the backup folder: the backups, restore points (database dumps and copied files), the staging area of a running restore, small state files and journals, the recovery token, the mark of the installation (.install) and the three files that keep the folder private (.htaccess, index.php, web.config). Two files older versions wrote into wp-content/ (devdback-storage.php, devdback-safe.flag) are removed when found; neither is created any more, and both are left out when a backup is made or restored.
  • A backup of a whole site is restored by the place of its folders in wp-content/. On a site that keeps its plugins, must-use plugins or themes somewhere else (the constants WP_PLUGIN_DIR, WPMU_PLUGIN_DIR, another theme root), a restore of a whole site is refused and a backup names those folders as not held (for themes this is decided by the folder of the active theme of the site the restore is started on; a further theme folder outside wp-content/ that is registered on the site the backup is made on is named by the backup as not held, and every such folder is left as it is by a restore). Restore points know these folders by what they are and work there.
  • The DevDome Tools screen can install another DevDome plugin from WordPress.org when you press Install there: WordPress’s own installer downloads it and puts it into the plugins folder.

What happens when the check after a restore fails?

Replaced tables and directories are kept until verification passes; a health check that positively FAILS triggers a full automatic rollback. The “back in a few minutes” notice stays up from just before the switch until the check has ended: pages, comments, the REST API, admin-ajax, admin-post and every posted form are answered with it for everybody who is not an administrator, signed in or not, so that what a visitor or a customer writes in those seconds is not lost to such a rollback. What it does not reach: a request that was already running at the switch, WP-Cron, WP-CLI and background queues, the login page (it stays open so that you can sign in), a PHP file of another plugin that is called directly, a request that writes without posting a form before WordPress has chosen a page, and files or cached pages a web server or CDN hands out without WordPress. It lifts itself three minutes after the last step of the check at the latest, also when the restore was interrupted. When the check’s own request is answered by the notice (a redirect dropped its mark), that is not counted as a failure: the copies stay and you are asked. After a restore of a whole network this holds for the main site; the other sites are open while they are loaded and checked. An answer that is neither a working page nor a server error (“not found”, “forbidden”) is not counted as a pass: the copies stay and you are asked. A health check that could not run at all (blocked loopback, timeout) is reported as unverified and never counted as a pass: the artifacts stay and you are asked to check the site.

What does a full backup leave out?

What a full backup leaves out, because it can be rebuilt or would put backups inside backups: cache folders (wp-content/cache, wpo-cache, litespeed, et-cache, uploads/cache), wp-content/upgrade and upgrade-temp-backup, the folders of other backup plugins (ai1wm-backups, updraft, backups, backup), this plugin’s own backup folders, the working copies it makes beside a folder or a file during a restore, and every node_modules, .git and .DS_Store. The working copies are told by the end of their name: .devdback-old-<time>, .devdback-new-<time>, .devdback-staging-<time>, .devdback-from-backup-<time>, .reverting-<time> and .bak-<time> (the time is a number of 9 to 11 digits; the copy of a PHP file has .php behind it, so that a web server never hands it out as text), and .devdback-self-in / .devdback-self-out. A folder or file of your own whose name ends that way is left out too. A folder of wp-content of which a backup holds nothing (no uploads at all, say) is left as it is by a restore of that backup. In a backup brought from another site the drop-in files WordPress loads before every plugin (object-cache.php, advanced-cache.php, db.php, sunrise.php and the like) are not installed, because they were made for the other server; the result of the restore names them. Symbolic links are not followed. A file whose name cannot be restored safely (a control character, a colon, or a dot or space at the end) is left out as well, and so is everything in a folder the server does not let the plugin open. Links, such files and such folders are counted as skipped on the backup and named in the log.

What does a restore leave behind?

A restore deliberately leaves recovery artifacts behind: the tables it swapped out are kept for 24 hours (suffixed _devdback_old) before a cron job drops them, and the replaced directories are kept until verification passes. Tables whose names end in _devdback_old or _devdback_bad under the table prefix of the site are this plugin’s working copies and are removed by it. So are tables whose names begin with the table prefix of the site followed by devdback_ (the working tables of a Restore Drill, devdback_dry_, of a restore and its test run, and of the account merge, devdback_um_): that name is this plugin’s own. Another full restore started within those 24 hours replaces the tables kept from the one before: it keeps its own copy of the site as it is then. One exception, named in the Keep dialog: after a whole-network restore that you keep, the previous tables of sites the backup does not hold are removed at once. Rolling a restore back puts back every table and folder the site had; on a single site, a table the backup brought that the site did not have before stays in the database, unused. While tables change places in a restore or a roll back, a small file in the backup storage folder (.reports-hold) holds this plugin’s usage reports back; it goes as soon as the “Help improve DevDome” choice of each replaced options table has been compared with the one before (a plugin stays switched on only when both said so), and what an interrupted restore left of it is finished by a maintenance run of that site, 15 minutes later at the earliest and when no operation is at work. That is what makes a failed restore reversible, but it does mean a restore temporarily uses roughly double the space, and a site whose cron never runs will keep the old tables until it does.

What is in the wp-config.php reference of a restore point?

The wp-config.php reference stored with restore points is redacted before it is written. What stays readable is the structure of the file, the names of its constants and variables, the table prefix, and the value of a constant whose name does not look like a key, secret, password, token or credential (the database name, user, password and host and the auth keys and salts never stay). Every other text and number in the file, and the text of every comment, is replaced with [REDACTED]. If the file cannot be read as PHP on your server (PHP without the tokenizer extension), no reference copy is stored.

What happens to user accounts in a restore?

User accounts are never restored unless you explicitly ask: a backup restored on the site it was made on changes no account and takes no role away from anybody. What each role may do is a setting of the site and comes back as it was in the backup (plugins write their own permissions into the roles); a role that exists only on the site now is kept, so no account is left with a role that nothing defines. A backup brought from another site is the one case in which roles on this site change without that choice: a user of the backup who exists here with the same login and the same email gets the role that user had on the site of the backup (the person running the restore keeps their own role). To see the names first, press “Test This Restore First” in the restore window of such a backup: it prepares the whole restore in working copies, changes nothing on the live site (the working copies, a lock and a safety copy in backup storage are removed again), and lists which accounts would be made, which would get another role and which are uncertain. The list is a forecast: the restore matches the accounts again when it runs. An account that already holds exactly the roles it had in the backup is not written again, and what one account was granted or denied beside its roles stays. A user of the backup that is made here keeps its number when that number is free. Where it gets another one (the number is taken here, or the user is matched to an account that exists), WordPress’s own fields follow: the author of a post, a comment or a link, and the last editor. Tables and meta fields of other plugins that hold user numbers (the customer of an order, say) keep the numbers of the site of the backup: check them after such a restore. Another restore from another site, or its test run, does not begin while an earlier one still has accounts to make. A foreign key of another plugin’s table that points at the user table is not kept by such a restore; the log names it. The result of the restore gives the number of accounts that were matched, made and left for you to check. A WordPress that was installed anew at the address of the old one counts as another site here: its user numbers are not the old ones, so the users of the backup are matched by login and email (a backup made before version 1.0.1 does not carry the name of its installation: for it the address and the table prefix decide). A restore point that covers the options table puts back what each role may do as it was at the point: taking an update back includes what that update changed in the roles.

What is the optional recovery file in mu-plugins?

Optional must-use plugin (explicit opt-in): Settings > Emergency recovery can install wp-content/mu-plugins/devdback-emergency.php, which makes a no-login recovery link work even when a broken plugin or theme stops WordPress before the login screen (must-use plugins load before regular plugins). The link needs WordPress to reach its database: when the database server does not answer, WordPress stops before any plugin and the link cannot work. Installing it the first time needs your opt-in in Settings; once you have opted in, an outdated copy is brought up to date and a full restore puts it back. It does nothing unless that link is opened, ships its complete readable source inside this plugin (includes/mu/devdback-emergency.php), and is removed from Settings, on deactivation, or by deleting the file. During a restore a second temporary must-use plugin (devdback-restoring.php, also bundled as readable source) keeps other plugins muted so a broken plugin inside the backup cannot crash the restore; it is removed when the restore ends and expires on its own two hours after the last restore activity (while a roll back waits for your decision it stays). A third bundled file (devdback-gate-<checksum>.php, readable source in includes/mu/devdback-gate.php) is there only for the seconds in which the user accounts are swapped: it answers arriving requests “being restored, try again”, is removed right after, and removes itself after ten minutes otherwise. None of these files is generated: each is copied as it ships.

Does it work with old backups from 0.4.x?

Yes. Legacy archives are strictly re-parsed and converted to the new verified format before restoring. The old format has no end mark: a file that was cut off exactly between two of its entries cannot be told from a whole one, so compare the number of files the preview shows with what you expect.

Screenshots

Changelog

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 what carries this plugin’s own names: the entries it made in its marked storage folder and the tables under its devdback_ names.
  • 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 (.bak-) 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.
  • Optional “Help improve DevDome” usage reports (off until you tick the box in Settings): one anonymous report after each backup, restore point or restore, see External services. Shared DevDome core 1.7.12.
  • The restore-point and backup indexes survive a restore (a restore point or backup that covers wp_options used to put them back to its own moment) and are written with proved writes.
  • Shared DevDome core 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.

Older releases: see changelog.txt.