pressable_restore_site
Restore a WordPress site from backup by specifying site ID, filesystem, and database options. Use this tool to recover site data and configurations when needed.
Instructions
Restore a site from a backup.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Site ID to restore | |
| filesystem_id | No | ||
| database_id | No | ||
| restore_on_site_id | No | Optional ID of site to restore onto |
Implementation Reference
- tools/backups.js:44-47 (handler)The handler function that executes the restore operation by making a POST request to the Pressable API.
handler: async (args) => { const { id, ...restoreData } = args; return await api.post(`/sites/${id}/restores`, restoreData); } - tools/backups.js:34-43 (schema)The JSON schema defining the required and optional inputs for the pressable_restore_site tool.
inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Site ID to restore' }, filesystem_id: { type: 'integer' }, database_id: { type: 'integer' }, restore_on_site_id: { type: 'integer', description: 'Optional ID of site to restore onto' } }, required: ['id'] }, - tools/backups.js:32-48 (registration)The complete tool definition object for pressable_restore_site, including name, description, schema, and handler.
name: 'pressable_restore_site', description: 'Restore a site from a backup.', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Site ID to restore' }, filesystem_id: { type: 'integer' }, database_id: { type: 'integer' }, restore_on_site_id: { type: 'integer', description: 'Optional ID of site to restore onto' } }, required: ['id'] }, handler: async (args) => { const { id, ...restoreData } = args; return await api.post(`/sites/${id}/restores`, restoreData); } },