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.
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. |