Skip to main content
Server Actions

Enable DB backup on disk for a server

Asynchronous Request

Deploys and enables the MariaDB backup-on-disk script on the server. Application databases are dumped together with a logical system backup (users, roles, grants, etc.), old backups are pruned according to the retention count, and a cron job is registered for the chosen schedule. The script also performs preflight free-space checks before writing dumps/archives. Webdock triggers an initial backup run right after enablement so status is available immediately. Requires the server to have database admin credentials.

POST
/servers/{serverSlug}/actions/db-backup-on-disk
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

serverSlugstringrequired

Slug of the server

Body

application/json

Optional backup configuration. Sensible defaults are used when omitted.

backupDirstring

Absolute path where backups are stored. Defaults to /root/db-backups.

Example: /root/db-backups
keepinteger

Number of backup archives to retain (1-365). Defaults to 7.

Example: 7
scheduleenum<string>

Backup schedule. Use 'manual' to skip cron and trigger via Manage Cron Jobs or the run action. Defaults to daily.

Available options: hourly, daily, weekly, manual
Example: daily

DB backup on disk enable initiated.

X-Callback-IDstringheader

CallbackID