Restore a backup
Put an environment back as it was when a backup was taken, follow the restore, and undo it if the result is not what you wanted.
On this page
Before you start
- You can open the site in Managed Websites. Anyone who can open a site can restore its backups.
- Each environment has its own backups: choose Production or Staging in the site header first.
- To restore a backup somewhere else, see Restore anywhere.
Restore a backup here
Choose Restore here
Go to Managed Websites, choose the site, then Backups under Code & backups. Find the backup by its Taken time or its Note, open its … menu and choose Restore here.
Choose what to restore
What to restore What is replaced Everything (fast) Files and database together. Files only Code, uploads and theme. The database stays as it is now. Database only (slower) Every table. The files stay as they are now. Confirm
Type the site's domain, then choose the red button: Restore everything, Restore the files or Restore the database.
A restore replaces what is in the environment now. Anything changed since the backup was taken is lost unless you undo the restore.
The environment as it is now is kept first, so you can undo. The site does not answer visitors while its data is replaced.
Follow the restore
Backups reads Restore in progress and shows five steps: Safety snapshot, Stopping the site, Copying data, Starting and Healthy. You can leave the page; the restore carries on.
When it finishes, Restores, below the list of backups, shows the restore with Ready and how long it took.
Undo a restore
Choose Undo…
In Restores, open the restore's … menu and choose Undo…. The restore dialog opens on the safety backup: go on to Review and start it.
Undo… is offered while the safety backup is kept, and leaves the menu when it expires. How long that is depends on the environment and its package: a safety backup in the list of backups shows its date under Expires.
If a restore fails
Backups says what became of the site. If it offers Restore the safety backup, choose it: nothing else can be changed on the site until then.
Automate this
Your assistant calls corestack_restore_create.
{
"name": "corestack_restore_create",
"arguments": {
"site_id": 4211,
"snapshot_id": 9051,
"mode": "everything",
"safety_snapshot": false,
"confirm_domain": "example.co.uk"
}
}