pressable_create_on_demand_backup
Create on-demand backups for WordPress sites to protect filesystem or database data from loss or corruption.
Instructions
Create an on-demand backup of a site.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| type | Yes |
Implementation Reference
- tools/backups.js:27-29 (handler)The handler function that executes the POST request to create an on-demand backup.
handler: async (args) => { return await api.post(`/sites/${args.id}/on-demand-backups`, { type: args.type }); } - tools/backups.js:19-26 (schema)The input schema defining the required 'id' and 'type' arguments for the tool.
inputSchema: { type: 'object', properties: { id: { type: 'string' }, type: { type: 'string', enum: ['filesystem', 'database'] } }, required: ['id', 'type'] }, - tools/backups.js:16-30 (registration)The tool registration block for 'pressable_create_on_demand_backup'.
{ name: 'pressable_create_on_demand_backup', description: 'Create an on-demand backup of a site.', inputSchema: { type: 'object', properties: { id: { type: 'string' }, type: { type: 'string', enum: ['filesystem', 'database'] } }, required: ['id', 'type'] }, handler: async (args) => { return await api.post(`/sites/${args.id}/on-demand-backups`, { type: args.type }); } },