create_database_backup
Configure scheduled backups for databases in Coolify to protect data and enable recovery. Set frequency, retention, and enable automated 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-421 (handler)The switch case handler for the 'create_database_backup' tool. It requires a 'uuid' parameter and sends a POST request to the Coolify API endpoint `/databases/${uuid}/backups` with the provided arguments.case 'create_database_backup': requireParam(args, 'uuid'); return client.post(`/databases/${args.uuid}/backups`, args);
- src/tools/definitions.ts:1140-1152 (schema)The tool definition including name, description, and input schema for validating parameters like uuid (required), enabled, frequency, and retention for creating database backups.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'] } },