Skip to main content

Get a restore preview

GET 

/appdata/backup/restore/preview/:jobId

Required role: admin. Only an account or token with the admin role can call this operation.

Example request
curl --request GET \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
"https://$HOSERVA_HOST:8008/api/v1/appdata/backup/restore/preview/{jobId}"

The result of the appdata_restore_preview job previewAppdataRestore queued. The daemon holds the sixteen most recent results in memory, so a result is gone after a restart and after sixteen newer previews: preview again. 404 job_not_found for an id that is not a restore preview job, 409 appdata_preview_not_ready while the job is queued or running, 409 appdata_preview_failed when it failed, was cancelled or was interrupted (the message says why; getJob and getJobLog have the rest), and 404 appdata_preview_gone when the job succeeded but its result is no longer held.

Request​

Responses​

What restoring the archive would overwrite.