Sign up

Back up now

POST/api/v1/vps/{vps_uuid}/backup

Takes a backup now. One runs at a time and three a day; manual ones count toward the 5 kept.

Parameters

NameInDescription
vps_uuidpath, stringrequiredVPS id, from Create a VPS or List VPS

Example request

curl -X POST "https://platform.serverscamp.com/api/v1/vps/$VPS_UUID/backup" \
  -H "Authorization: Bearer $API_TOKEN"

Answer

Status 200 with this body.

FieldTypeDescription
vps_uuidstringrequired
statusstringrequiredWhat the server does now; poll Get a VPS to see it finish
{
  "vps_uuid": "12d46f8c-d66e-4163-99aa-1245d5b06e5b",
  "status": "backing_up"
}

Errors

StatusWhen
401No token, or a token that is not valid
409Backups are off, or a backup is already running
422The body or a parameter is not what the operation takes
429Three manual backups in the last 24 hours

Every operation can also answer 401 without a valid token. All errors