Linux 软件免费装
Banner图

DevDome Backup & Migration: WordPress Backup Plugin

开发者 devdome
更新时间 2026年11月28日 04:55
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

backup scheduler disaster recovery auto rollback update guard site snapshot

下载

1.0.2

详情介绍:

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 Full backups, restore & migration What this version does NOT do (honesty section)

安装:

  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.

屏幕截图:

  • Update Guard: a restore point before every plugin and theme update, with verification and auto rollback.
  • Restore Points: preview or restore the state before an update or a restore.
  • Full Backups: create, download, upload, drill or restore a verified backup of the whole site.
  • Settings: retention, the backup scheduler, backup storage and emergency recovery.

升级注意事项:

1.0.2 Requires WordPress 6.2 or newer. Backups and restore points are unaffected. 1.0.1 Uptime alerts stay quiet during guarded updates, first-activation redirect, shared DevDome library 1.7.17. Backups and restore points are unaffected. 1.0.0 First WordPress.org release.

常见问题:

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.

更新日志:

1.0.2 1.0.1 1.0.0