After a restore, the plugin keeps the previous state of your website for 7 days. During this time you decide whether to keep the restore by deleting the rollback, or to undo it.
“Undo restore” does not ask for confirmation
Delete the way back asks for confirmation in a dialog window before it begins. Undo restore begins immediately after the click; it has no confirmation prompt. After the rollback is deleted, the previous state is removed. After undoing, the applied state is removed; the backup itself stays in the list.
Step 1: Find the open rollback
As long as the decision is pending, two pages show the open rollback. On the Overview page, it is in the status tile:
- A restore is applied and can still be undone until ….
- Keep or undo it takes you to the Restore page.
On the Restore page, the main tile is yellow and is called Restore applied:
- The line shows when the restore was applied and until when it can be undone.
- The previous tables and folders are kept for 7 days. Delete the way back or undo the restore; after 7 days the way back is deleted automatically.
-
The backup has no wp-config.php to compare with. This is where the main tile shows the comparison of the
wp-config.phpof this website with the backup. A backup never contains the file. - Delete the way back removes the previous state after a confirmation prompt.
- Undo restore brings the previous state back.
The buttons also work if you had to log in again after the restore.
Step 2: Check the website and decide
Check the website before you decide: the home page, the login, the pages and functions that matter to you.
Also read what the main tile Restore applied shows below the note about the 7 days:
- If the restore removed files or tables with the switch Remove everything that is not in the backup, the main tile reads Removed because not in the backup; “Undo restore” brings them back: The number of files per root and the number of tables follow.
- Below that is the comparison of the
wp-config.phpof this website with the backup: The backup has no wp-config.php to compare with. Neither the restore nor keeping nor undoing changes thewp-config.php.
After keeping and after undoing, the page no longer shows either of the two. Each of these messages is explained in The “Restore” page; the picture for it is there as well.
| Your choice | What happens | What is no longer possible afterwards |
|---|---|---|
| Delete the way back | The plugin deletes the previous tables and the folders with the previous state of the files. These include the files and tables that the restore removed because they were not in the backup: these files and tables are permanently deleted afterwards. The space is freed. | Undoing the restore. |
| Undo restore | The plugin puts the previous tables, files and folders back in place, including the files and tables that the restore removed because they were not in the backup. It deletes the tables from the backup. | Accessing what was added to the database since the restore. |
| Do nothing | After 7 days, the plugin deletes the rollback on its own, as soon as a task source next triggers the plugin. The result is the same as with Delete the way back. | Undoing the restore. |
Step 3: Carry out the choice
Keeping the restore
Click Delete the way back. The dialog window Delete the way back? asks for confirmation.
- Caution: if you delete the way back (the state before the currently active backup was applied), it is removed for good. The currently active backup stays active.
- Cancel closes the dialog window; the rollback stays open.
- Delete the way back confirms.
After the confirmation, the plugin removes the previous state in steps, as with a backup.
- The progress. The phase is called Removing the previous state.
- Both buttons are disabled while the plugin is working.
During this, there is no link for aborting below the progress: keeping cannot be aborted. The same applies to undoing.
- Restore kept. The previous tables and folders were removed.
The main tile is called Restore again. A new restore is now possible.
Undoing the restore
Click Undo restore. The plugin follows the same steps as during the restore, only in reverse:
- Uploads and files in the root folder come back file by file.
- In the maintenance mode of WordPress, the plugin puts the previous tables back in place, then core and code.
- The plugin removes the applied state.
The website does not have to confirm itself as it does during the restore: the previous state is a state that was already running.
- The progress. The phase is called Undo restore.
- Both buttons are disabled while the plugin is working.
- Restore undone. The website runs on the previous state again.
The database from before applies again, with its user accounts. If your login becomes invalid in the process, log in again.
Step 4: See what happened
Switch to the Extended view and, on the Restore page, expand the Recent restores tile.
- What ran: a restore with the date of its backup, Way back deleted or Undo restore.
- The state, for example Undo open, kept, deleted, reverted, Failed or Aborted.
- Duration shows how long the operation ran.
- The arrow expands and collapses the tile.
- The dot shows the result: green for successful, yellow for with warnings, red for failed or aborted.
- Log … opens the log of the operation.
If something does not work
If keeping or undoing does not start, the red message begins with That did not work: … and gives the cause.
| Cause in the message | What you can do |
|---|---|
| A job is already running. | Only one job runs at a time. Wait until it has finished, then click again. |
| This restore has no open way back. | The restore is already kept or undone, perhaps on its own after 7 days. The Recent restores tile shows the state. |
| The database could not be put back; nothing was closed and the way back stays open. Run undo again later. | The rollback stays open. Click Undo restore again later. |
| The previous tables could not be removed; the way back stays open and keep runs again later. | The rollback stays open. The plugin finishes keeping later on its own. |
| This restore is being kept; the previous tables are already removed, so undo is no longer possible. Keep runs to the end. | Keeping has already begun. The restore can then no longer be undone. |
If the message after keeping or undoing is yellow, there were warnings, for example because something could not be removed or could not be put back. If steps could not be undone, it reads Restore undone, but … step(s) could not be put back. See the log. The yellow message contains the link Log; you also find the log in the Recent restores tile. Check the website afterwards.
Undoing also ends with warnings if the restore replaced the uploads in place. This is what the page looks like then:
- Dismiss closes the message.
- The message is yellow and reads Restore undone. The website runs on the previous state again. The message stays until you close it.
Good to know
- As long as the rollback is open, no new restore starts. The Restore entry in the menu of a backup then does not open the preparation.
- Uploads that the restore replaced in place have no rollback. Undoing puts everything else back; the uploads stay in the state of the backup. More about this: Restore uploads when there is not enough space.
- After undoing, you get an email like after a failed backup. For that, On errors and warnings must be switched on in the notifications.
- As long as the rollback is open, the plugin cannot be deactivated and therefore cannot be deleted. The plugin list of WordPress then shows a dialog window with the link to the Restore page.
- Undoing leaves the plans, exclusions and settings of the plugin as they are at that moment.
See also
- Restore the website from a backup
- The “Restore” page
- Read the log
- Uninstall the plugin
- Restore and import with WP-CLI
On the command line
WP-CLI not set up yet? How to install WP-CLI.
Both also work with WP-CLI. Without a job name, the command applies to the restore whose rollback is open. Here too, the plugin does not ask for confirmation.
# Show the pending rollback with its deadline wp cloneworx-backup restore status # Keep the restore: the previous state is removed wp cloneworx-backup restore keep # Undo the restore: the previous state comes back wp cloneworx-backup restore undo