/backups/run
0.1.0Unchanged since publicationQueue a server backup run
backupsallThe response contains the queued job in job. A full run uses the same process as the scheduled nightly run. It writes one archive per eligible customer beside server.json in the day folder under backups.dir, then removes days beyond backups.keep_days. Repeating a full run for the same day replaces that day's archives.
Use day in YYYY-MM-DD format to select the backup day. Use user to back up a single customer regardless of their nightly backup switch. The API returns 400 if day has an invalid format or user names an administrator, and 404 if user names an account that does not exist.
The API returns 403 if the caller lacks administrator privileges and 409 if another server backup run is queued or running, including a scheduled run. It also returns 409 if server backups are off and identifies backups.enabled in the error. The worker runs one job at a time, so other jobs wait while the backup runs.
daystring, matching ^\d{4}-\d{2}-\d{2}$userUsernameExample
See the API overview for how to set $API and $TOKEN.curl -sS -X POST "$API/backups/run" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"day": "2026-09-09",
"user": "alice"
}'202 Accepted{
"job": {
"created_at": "2026-09-09T10:15:00Z",
"created_by": 1,
"created_by_name": "text",
"dismissed_at": "text",
"finished_at": "2026-09-09T10:15:04Z",
"id": 1,
"lane": "short",
"log": "",
"params": {},
"progress": 100,
"result": {},
"started_at": "2026-09-09T10:15:01Z",
"status": "queued",
"type": "rebuild",
"usual_seconds": 1
}
}Errors
14 errors, each a status and a sentence400<name> is an administrator: administrators have no home, so no archive of theirs400A day is named YYYY-MM-DD400A new job is queued or running400Invalid <what>: 400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Job parameters must be an object400Unknown job type400Username '<value>' is reserved401Authentication required403Insufficient privileges404No user named <user>404User '<user>' not found409A backup run is already <j.status> (job <j.id>); one at a time409The server's backups are off (backups.enabled): turn them on on the Backups page, or with urbestack-setting-set --key backups.enabled --value trueurbestack.com/docs/api/post-backups-run/