Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Create space backup job

Creates new space backup job and adds it to the queue.

POST/rest/api/backup-restore/backup/space
Request body
application/json

Space backup settings

spaceKeysstring[]
keepPermanentlyboolean
fileNamePrefixstring
Responses
200

Returns a JSON representation of the space backup job

idinteger<int64>
jobOperationstring
Allowed:BACKUPRESTORE
jobScopestring
Allowed:SPACESITE
jobStatestring
Allowed:QUEUEDPROCESSINGCOMPLETINGFINISHEDCANCELLINGCANCELLEDFAILED
createTimestring<date-time>
startProcessingTimestring<date-time>
finishProcessingTimestring<date-time>
cancelTimestring<date-time>
errorMessagestring
ownerstring
cancelledBystring
fileNamestring
spaceKeysstring
fileDeleteTimestring<date-time>
fileExistsboolean
jobSettingsSpaceBackupSettings
Show properties
spaceKeysstring[]
keepPermanentlyboolean
fileNamePrefixstring
statisticsJobStatistics
Show properties
totalObjectsCountinteger<int64>
processedObjectsCountinteger<int64>
persistedObjectsCountinteger<int64>
skippedObjectsCountinteger<int64>
reusedObjectsCountinteger<int64>
jobStatisticsJobStatistics
Show properties
totalObjectsCountinteger<int64>
processedObjectsCountinteger<int64>
persistedObjectsCountinteger<int64>
skippedObjectsCountinteger<int64>
reusedObjectsCountinteger<int64>
400

Returned if invalid settings provided

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
403

Returned if user doesn't have permission to create space backups

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
409

Returned if backup with the same spaces selected is already in PROGRESS or QUEUED

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Bodyapplication/json
Request
curl -X POST 'http://example.com:7990/confluence/rest/api/backup-restore/backup/space' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "spaceKeys": "['\''SPACE1'\'', '\''SPACE2'\'']",
  "keepPermanently": true,
  "fileNamePrefix": "backup"
}'
Response
{
  "id": 1,
  "jobOperation": "BACKUP",
  "jobScope": "SITE",
  "jobState": "IN_PROGRESS",
  "createTime": "2020-01-01T01:01:01Z",
  "startProcessingTime": "2020-01-01T01:01:01Z",
  "finishProcessingTime": "2020-01-01T01:01:01Z",
  "cancelTime": "2020-01-01T01:01:01Z",
  "errorMessage": "Error message",
  "owner": "admin",
  "cancelledBy": "admin",
  "fileName": "backup-2020-01-01.zip",
  "spaceKeys": "spaceKey1,spaceKey2",
  "fileDeleteTime": "2020-01-01T01:01:01Z",
  "fileExists": true,
  "jobSettings": {
    "spaceKeys": "['SPACE1', 'SPACE2']",
    "keepPermanently": true,
    "fileNamePrefix": "backup"
  },
  "statistics": {
    "totalObjectsCount": 100,
    "processedObjectsCount": 50,
    "persistedObjectsCount": 50,
    "skippedObjectsCount": 0,
    "reusedObjectsCount": 10
  },
  "jobStatistics": {
    "totalObjectsCount": 100,
    "processedObjectsCount": 50,
    "persistedObjectsCount": 50,
    "skippedObjectsCount": 0,
    "reusedObjectsCount": 10
  }
}

Was this page helpful?