Restore from a backup
/backups/runs/{id}/restore/manage Delete and money: deletes, credits, servers or panel settings. Scopes
Prepares a restore from a stored backup and answers with a backup import (201). Then check it and restore it with the backup import calls. Panel operators only.
Path parameters
idstring (uuid)requiredA UUID string identifying this Backup.
Response
201 OK
idstringrequiredfilenamestringrequiredsize_bytesintegerrequiredreceivedintegerrequiredBytes uploaded so far.
statusstringrequireduploading- uploadingready- readyrestoring- restoringcompleted- completedfailed- failed
One of:
"uploading""ready""restoring""completed""failed"phasestringrequiredmessagestringrequiredcreated_bystringrequiredcreated_atstringrequiredupdated_atstringrequiredencryptedbooleanarchiveobjectrequiredWhat the file holds; empty until it is checked.
created_atstringscopestringcontents_labelstringcomponentsobject[]{key, label, kind}for each part the file holds.filesstring[]databaseobjectpanel_imagestringadminsobject[]{username, is_active}of the administrators in the file.admins_knownbooleanaccountsobjectproblemstringcan be nullWhy this file cannot be restored here, if it cannot.
optionsobjectrequiredWhat the restore was asked to do.
outcomeobjectrequiredWhat the restore did, once it has finished.
chunk_bytesintegerOnly when the upload starts: send the file in pieces of at most this size.
expected_offsetintegerOnly when a piece was not written: send again from this byte.
adminsobjectOnly after a check: the file's administrators against this panel's.
knownbooleanrequiredFalse for older backups that do not record their administrators.
theirsstring[]requiredminestring[]requiredonly_theirsstring[]requiredonly_minestring[]requireddifferbooleanrequirednone_in_backupbooleanrequired
Errors
- 400 Something sent is not valid. Each field that is wrong is named with what is wrong.
- 401 No credential, or one that is wrong, expired or revoked.
- 403 The account, or the key's or app's scopes, may not do this.
- 404 Nothing with this id, or nothing the account can see.
- 409 Not now: the answer says why.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.