Restore anywhere
Restore a backup somewhere other than its own environment, and follow it on its progress page.
Before you start
- You can open the backup's site, and the site you restore into, in Managed Websites.
- A restore onto an environment that already exists replaces what is there. Its current data is kept as a safety copy, so you can undo.
- A restore into staging is made safe first: outgoing email is held, scheduled tasks are off, admin passwords are reset and search engines are asked not to index it.
Start from a backup
Open the backup's menu
Go to Managed Websites, choose the site, then Backups under Code & backups. Open the backup's … menu.
Choose where it goes
Choose one of the menu's restore items. Restore here puts the backup's own environment back: see Restore a backup.
- Restore onto another environment… replaces everything in an environment you choose.
To start from a backup of any site, see Organisation snapshots.
Finish the restore
Check Where to
The dialog moves through Snapshot, Where to, Options and Review. At Where to, change the target if you need to, then choose Next: Options.
Set the options
For an environment that already exists, choose Everything (fast), Files only or Database only (slower).
Review and start
Review lists what happens, what is replaced and the safety copy. Type the name it asks for, then choose the button that starts the restore.
Onto Staging, the button reads Restore onto Staging.
Follow the progress
Choose View progress. The page shows each step until the target is Ready; you can leave it and come back.
When a restore resets the admin password, the page shows a One-time admin login: choose Show login details and store it. It is shown once.
To undo a restore onto an environment that already existed, choose Undo on its progress page while the safety copy is kept.
Automate this
Your assistant calls corestack_snapshot_restore_to.
{
"name": "corestack_snapshot_restore_to",
"arguments": {
"snapshot_id": 812,
"target": {
"kind": "existing_environment",
"site_id": 311
},
"scope": "database",
"confirm_name": "Staging"
}
}