Start a backup of the account on a server, full or databases only
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/api/v1/tenants/{tid}/backups may answer 202Start a backup of the account on a server, full or databases only
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
server_idstring requiredkindstring requiredincremental builds on the newest backup of the chain, or is made full when there is none it can use
Allowed values:"full""databases""incremental"
Example
{
"server_id": "string",
"kind": "full"
}Responses
202 Running
Content type: application/json
idstring requiredtenant_idstring requiredserver_idstring requiredkindstring requiredAllowed values:"full""databases""incremental"triggerstring requiredAllowed values:"manual""schedule"statestring requiredAllowed values:"running""succeeded""failed"job_idstring requiredsizeinteger requiredsha256string requiredlocalboolean requiredA copy is kept on the server
remoteboolean requiredA copy is in the account's S3 bucket or on its SFTP server
remote_targetstring optionalWhere the remote copy went ('' is S3, from before ADR 0078)
Allowed values:"""s3""sftp"base_idstring optionalThe backup an incremental one builds on (ADR 0088)
chain_depthinteger optional0 for a full backup, 1..14 for an incremental one
chain_rootstring optionalThe full backup the chain starts from, when the backup is part of a chain
dependentsinteger optionalHow many backups build on this one
snapshotobject optionalHow files were read (ADR 0113): vss from a shadow copy, or live; warning is why not, or a cleanup that failed. Absent in older backups.
methodstring requiredAllowed values:"vss""live"warningstring optional
upload_errorstring requirederror_codestring requiredcreated_atstring (date-time) requiredfinished_atstring (date-time) | null requiredkindstring requiredAllowed values:"site""database""mail"namestring requiredlabelstring optionalfilesinteger requiredbytesinteger requiredskippedinteger optionalincrementalboolean optionalOnly the files changed since the backup before it in the chain (ADR 0088)
Example
{
"id": "string",
"tenant_id": "string",
"server_id": "string",
"kind": "full",
"trigger": "manual",
"state": "running",
"job_id": "string",
"size": 0,
"sha256": "string",
"local": true,
"remote": true,
"remote_target": "",
"base_id": "string",
"chain_depth": 0,
"chain_root": "string",
"dependents": 0,
"snapshot": {
"method": "vss",
"warning": "string"
},
"upload_error": "string",
"error_code": "string",
"created_at": "2026-01-01T00:00:00Z",
"finished_at": "2026-01-01T00:00:00Z",
"parts": [
{
"kind": "site",
"name": "string",
"label": "string",
"files": 0,
"bytes": 0,
"skipped": 0,
"incremental": true
}
]
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required