| 开发者 | jbosnakis |
|---|---|
| 更新时间 | 2026年10月31日 19:16 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
.restora/.wp-config.php is never overwritten.In wp-content/restora-<random key>/. Its name cannot be guessed, and on Apache and IIS the files Restora puts in it deny web access. nginx ignores those files: Restora checks once a day whether the folder can be reached from the web and, if it can, shows the line to add to the nginx configuration.
They stay where they are. Install Restora again and it finds them.
Cache folders, WordPress upgrade leftovers and the backup folders of other backup plugins. You can add your own paths and patterns in the settings; developers can also use the restora_exclude filter.
From the database, the tables of the site are backed up: WordPress's own, plus any other tables you choose in the settings. Views, triggers, stored procedures and events are not; WordPress does not use them, but some custom code does.
It is undone. Before a file is replaced, its current version is set aside, and the database is only switched over at the very end. If the restore cannot finish (the disk fills up, a folder cannot be written, the window is closed), every file goes back to how it was and the database is left untouched. Before anything is written, Restora also checks that the folders are writable and that there is enough free space.
A Restora backup is a normal zip, so nothing is locked in. The files are in it as they were on the site, and the database is plain SQL under .restora/ inside the archive: unpack the files over the site with FTP or the host's file manager, import the SQL with phpMyAdmin, and the site is back. The step-by-step guide is at https://restora.perforks.com/docs#restore-by-hand. Restora Pro adds an emergency recovery page that does all this for you, even when WordPress itself does not load, and copies of your backups on S3 or SFTP for the day the whole server is gone.
Only administrators (network administrators on a multisite network): every screen, button and download checks that capability and a nonce, and the backup folder itself has a random name and is closed to the web, so a backup can only be fetched through Restora by someone logged in with that right. The restora_capability filter narrows the circle further, to a custom capability you give to the people you choose. The WP-CLI commands run only for someone with shell access to the server as the site's own user, who could reach the files anyway; define( 'RESTORA_DISABLE_CLI', true ) in wp-config.php switches them off on a server where that shell is shared. Restora Pro's remote access is read-and-run only: another site with the access key can list, start and download backups, never delete or restore; the key is stored hashed and locks after a few wrong attempts.
No. They start through WP-Cron and then keep themselves going. On a site with very few visits they may start late; a server cron job calling wp-cron.php makes the timing exact.
No. Everything it writes stays in its own randomly named folder in wp-content. While a restore runs, its settings file waits there too (readable by the site only, and without the database credentials, which are read from wp-config.php) and is removed when the restore ends.
Yes. Backups encrypted by Restora Pro can be restored here with their password, even without Pro. A lost password cannot be recovered: that is what the encryption is for.
Yes. Under Settings, turn on "Before updates": just before WordPress updates a plugin, a theme or itself, Restora backs up the database, or the database with the plugins and themes folders if you choose so. Media is never included, because the update waits for the backup. One backup covers all the updates of the next ten minutes, the newest few are kept, and a backup that fails never stops the update.
Yes: wp restora backup, wp restora list, wp restora restore <name>, wp restora delete <name>, wp restora log <name> and wp restora status. Run wp help restora for the options. status exits with 1 when the backups need attention.
With Restora Pro, yes, site by site. The main site's backup carries the network itself (its tables, the user list, the shared files); every other site's backup carries that site's tables, its uploads and the users who belong to it. "All sites" makes one backup per site in one set, so the whole network goes back with one click, main site first, and restoring one site touches only that site and merges its users. The free plugin says so and stops on a network.
No. Files that exist on the site but not in the backup are left in place, and wp-config.php is never overwritten.
restora_zip_cipher filter, and restora_backup_seal lets it sign the archive index.restora_capability filter, to narrow who may use Restora to a capability of your choosing, and RESTORA_DISABLE_CLI to switch the WP-CLI commands off on a server whose shell is shared.wp restora backup --site=<id|all> and a site column in wp restora list on networks.wp restora backup, list, restore, delete, log and status, for scripts and for sites managed from the terminal. status exits with 1 when the backups need attention, so it can sit in monitoring.