Stream a one-shot SQLite backup
POST
/system/backup/download
const url = 'https://your-server.example/api/system/backup/download';const options = { method: 'POST', headers: {cookie: 'session=<session>', 'Content-Type': 'application/json'}, body: '{"compact":false}'};
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/download \ --header 'Content-Type: application/json' \ --cookie session=<session> \ --data '{ "compact": false }'Runs VACUUM INTO to a temporary file then streams it. When compact=true,
metrics and request stats tables are stripped before download.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Media typeapplication/json
object
compact
boolean
Responses
Section titled “Responses”SQLite database bytes.
Media typeapplication/octet-stream
string format: binary