Set the scheduled DB backup config
POST
/system/backup/config
const url = 'https://your-server.example/api/system/backup/config';const options = { method: 'POST', headers: {cookie: 'session=<session>', 'Content-Type': 'application/json'}, body: '{"enabled":true,"schedule":"example","destination":"example","compact":true,"retention":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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 }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”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}Responses
Section titled “Responses”Saved.
Media typeapplication/json
object
status
string
Example
{ "status": "ok"}