create_database_backup
Configure automated backups for databases to protect data and ensure recovery. Set backup frequency, retention policies, and enable scheduled protection.
Instructions
Create a backup configuration for a database
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Database UUID | |
| enabled | No | Enable scheduled backups | |
| frequency | No | Backup frequency (e.g., daily, weekly) | |
| retention | No | Number of backups to retain |
Implementation Reference
- src/tools/handlers.ts:419-422 (handler)The handler logic for the 'create_database_backup' tool within the handleTool switch statement. It requires a 'uuid' parameter for the database and sends a POST request to the Coolify API to create a backup configuration.case 'create_database_backup': requireParam(args, 'uuid'); return client.post(`/databases/${args.uuid}/backups`, args);
- src/tools/definitions.ts:1140-1152 (schema)The schema definition for the 'create_database_backup' tool, including input validation schema that requires 'uuid' and defines optional parameters for backup scheduling.name: 'create_database_backup', description: 'Create a backup configuration for a database', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Database UUID' }, enabled: { type: 'boolean', description: 'Enable scheduled backups', default: true }, frequency: { type: 'string', description: 'Backup frequency (e.g., daily, weekly)' }, retention: { type: 'number', description: 'Number of backups to retain' } }, required: ['uuid'] } },