Restore Wordpress Backup
restore_wordpress_backupRestores a Cloud for WordPress site’s files and database from chosen backups, overwriting current content. Run dry_run first to preview; the restore is queued and the site is briefly unavailable.
Instructions
REPLACE a Cloud for WordPress site's files and database with one files backup (fs_id) and one database backup (db_id) from list_wordpress_backups; anything changed since is lost. Run it with dry_run: true first and confirm the exact backup dates with the user. The restore is queued: the site is unavailable for a few minutes and the account holder is emailed when it finishes. Poll get_hosting (wordpress.site.operations) until its state is done.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domain": "<domain>",
"fs_id": "<fs_id>",
"db_id": "<db_id>"
},
"name": "restore_wordpress_backup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db_id | Yes | A database backup id. | |
| fs_id | Yes | A files backup id. | |
| domain | Yes | Domain of the Cloud for WordPress site, e.g. `example.com`. | |
| dry_run | No | Validate and preview without changing anything. | |
| staging | No | true: act on the site's staging copy instead of the live site. |