Skip to main content

getBackupProgress

BackupProgressWrapper getBackupProgress(dump)

GET /api/2.0/backup/getbackupprogress

Get the backup progress

Reports the state of the backup job of the current portal, and is the operation to poll after POST api/2.0/backup/startbackup. The queue holds one job per portal, so no job ID is passed in; dump asks for the state of the server-wide job instead and requires the space access permission. When there is no such job - none was ever started, or the finished one has already been dropped from the queue - the call still answers 200, but the body carries no response member at all, so a client has to treat the payload as optional rather than expect an empty object. While the job runs, isCompleted is false, error and link are empty strings and progress grows from 0 to 100. Once it stops, isCompleted turns true and status says how it ended: a non-empty error is the only report of a failure, warning is set when the archive was written but some files could not be read or when the job was cancelled, and link becomes the download link to the stored archive.

Parameters​

NameInTypeDescriptionNotes
dumpqueryBooleanApplies the operation to the whole server rather than to the current portal, which requires the space access permission and works on a standalone installation only. Server-wide backups and schedules are kept apart from the ones of a portal, so the two values address different data.[optional] [example: false]

Responses​

Status codeDescriptionTypeResponse headers
200The state of the backup job, or an empty payload when there is no such jobBackupProgressWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
403No permissions to perform this action--
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
500Internal Server Error.ErrorApiResponse-
400Bad Request.ErrorApiResponse-
502Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON.--
503Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON.--

Return type​

BackupProgressWrapper

Authorization​

Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json