Skip to content

Set the scheduled DB backup config

POST
/system/backup/config
curl --request POST \
--url https://your-server.example/api/system/backup/config \
--header 'Content-Type: application/json' \
--cookie session=<session> \
--data '{ "enabled": true, "schedule": "example", "destination": "example", "compact": true, "retention": 1 }'
Media typeapplication/json
object
enabled
boolean
schedule

Cron expression.

string
destination

Filesystem path.

string
compact
boolean
retention
integer

Example generated

{
"enabled": true,
"schedule": "example",
"destination": "example",
"compact": true,
"retention": 1
}

Saved.

Media typeapplication/json
object
status
string

Example

{
"status": "ok"
}