Restore a backup: the whole site, part of it, or a point in time
Last updated
Restoring means putting a backup back onto a site, so that it returns to how it was when the backup was taken. MaintainHQ gives you three ways to do it: restore the whole site, restore just the parts you choose (single files, folders or database tables), or restore to an exact moment for sites with the change journal turned on.
Every restore is protected. Before anything changes, the site takes a safety backup of how it is now. If the restore fails part-way, the original files and tables are put back automatically.
Before you restore
- Choose the right backup. Pick the most recent one taken before the problem started. For a hack, that may be weeks earlier: check the date the problem was first seen.
- Think about what has changed since. A whole-site restore replaces the entire database, so orders, comments, form entries and new users since the backup are lost (the safety backup keeps a copy). If that matters, a partial restore may be better.
- The site must show Connected in MaintainHQ and run a recent version of the MaintainHQ plugin. The review step tells you if it needs updating.
- Only one restore can run on a site at a time, and not while a backup is running on it.
Restore the whole site
- Open Backups in the left-hand menu, then the History tab.
- Find the backup and press the restore icon (Restore this backup). You are taken to the Restore / Migrate tab with the backup chosen. You can also go straight to Restore / Migrate and pick it under 1. Backup to restore.
- Under 2. Restore onto, choose the same site (Roll the site back to this backup).
- Press Review what will happen. MaintainHQ checks the backup and the site and lists exactly what the restore will do.
- Read the list carefully. Tick I understand … will be overwritten by this backup.
- Type the site’s address (shown in bold) into the box to confirm.
- If the backup is encrypted with your own passphrase, enter it. On its own site you can leave it empty while the site still has the key.
- Press Start restore.
The restore now runs on the site. The page shows its progress as the site reports each step: taking a safety backup, downloading the backup, checking the archive, importing the database, restoring files, switching to the restored database, updating addresses and cleaning up. You can leave the page; it carries on.
What a whole-site restore changes
- The whole database is replaced with the backup’s copy.
- For a full backup, wp-content files from the backup replace the site’s copies. Files added since the backup are left in place. A database-only backup does not touch files.
- The MaintainHQ plugin itself is never replaced.
- Visitors see a short maintenance page while files and tables are switched, and you may need to log in again afterwards.
When it finishes, Restore history shows Completed with a summary, such as the number of tables and files restored.
Restore part of a backup: files, folders or tables
A partial (or granular) restore puts back only what you choose and leaves everything else on the site as it is. It is ideal when one plugin update broke something, a page was deleted, or one image was overwritten, and you do not want to lose today’s orders.
- In History, press the folder icon (Browse files and tables; restore part of it) on a completed backup.
- The Browse backup window opens. On the left you can move through the wp-content folder; on the right is the list of database tables, with their row counts.
- Tick the files, folders (for example a whole plugin or theme folder) and tables you want back.
- If you chose folders, decide on Make plugin and theme folders exactly as in the backup. Ticked, files added since the backup are moved aside so the folder matches the backup exactly. Unticked, files are restored over the current ones and newer files stay.
- Type the site’s address to confirm.
- Press Restore selection.
The site takes a full safety backup first. If anything fails, everything is put back. Progress appears on the Restore / Migrate tab.
Browsing is not available for backups encrypted with your own passphrase, because MaintainHQ cannot read inside them.
Restore to a point in time
For busy sites and shops, the change journal (turned on under Backups, Protection) records database changes as they happen and sends them to MaintainHQ every five minutes. Point-in-time restore uses it to take the site back to a chosen moment: MaintainHQ starts from the nearest earlier backup and replays the recorded changes up to that moment.
- On the Restore / Migrate tab, find Point-in-time restore.
- Choose a site. Only sites with a change journal are listed.
- Pick the date and time. The card shows the window you can restore within, in your local time.
- Press Check. MaintainHQ shows which backup it will start from and how many recorded changes it will replay.
- Type the site’s address to confirm and press Restore to this moment.
The journal covers posts and pages, post meta, comments, categories and tags, users, settings and WooCommerce orders. It does not cover files and uploads (they come from the backup), tables that other plugins keep for themselves (such as forms, bookings or course progress), changes made directly in the database rather than through WordPress, or multisite sub-sites.
If a restore fails
If something goes wrong before the switch-over completes, the site puts its original tables and files back automatically, and Restore history shows Failed with the reason. Nothing is lost.
In the rare case the site could not put itself back, the status says so. The safety backup taken before the restore (trigger Pre-Restore) is in History: restore that to return the site to how it was before you started.
Common reasons a restore will not start:
- The site is not connected. Reconnect the MaintainHQ plugin and wait until it shows Connected.
- The MaintainHQ plugin is out of date. Update it from WordPress, Plugins, then try again.
- Another restore or a backup is already running on the site. Wait for it to finish.
- It is an incremental backup whose full backup has been deleted, so it cannot be rebuilt.