Database backup
API server
https://app.coolify.io/api/v1Update a specific backup configuration for a given database, identified by its UUID and the backup ID
Authorization
bearerAuth Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.
In: header
Path Parameters
UUID of the database.
UUID of the backup configuration.
Request Body
application/json
Database backup configuration data
TypeScript Definitions
Use the request body type in TypeScript.
Whether data is saved in s3 or not
Delete the local backup file after the upload to S3. Only allowed when save_s3 is true. Turning save_s3 off also turns this off.
Primary S3 storage UUID. Sent without s3_storage_uuids, it selects this storage as the only destination; when it is already a destination, it becomes the primary destination and the other destinations stay.
UUIDs of every S3 storage the backup is uploaded to. Replaces the current destinations. When s3_storage_uuid is also sent, it must be in this list and becomes the primary destination; otherwise the first entry is the primary destination.
Whether to take a backup now or not. Needs a token with the deploy permission.
Whether the backup is enabled or not
Comma separated list of databases to backup
Whether all databases are dumped or not
Frequency of the backup
Retention amount of the backup locally
Retention days of the backup locally
Max storage of the backup locally
Retention amount of the backup in s3
Retention days of the backup in s3
Max storage of the backup in S3
Backup job timeout in seconds (min: 60, max: 36000)
3600Alert after this many days without an execution; 0 disables alerts
0 <= value <= 365Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "https://app.coolify.io/api/v1/databases/string/backups/string" \ -H "Content-Type: application/json" \ -d '{}'{ "message": "Invalid token."}{ "message": "Unauthenticated."}{ "message": "Resource not found."}{ "message": "Validation error.", "errors": { "name": [ "The name field is required." ], "api_url": [ "The api url field is required.", "The api url format is invalid." ] }}