Restore an uploaded backup
/backups/imports/{import_id}/restore/manage Delete and money: deletes, credits, servers or panel settings. Scopes
Restores the whole database (whole) or only the chosen components, in the background (202). keep_admins keeps this panel's administrators so you can still sign in; keys also restores the key files the backup holds. Panel operators only.
Path parameters
import_idstringrequiredThe backup import's id.
Body
wholebooleanDefault:
falsecomponentsstring[]One of:
"accounts""lines""credits""categories""bouquets""streams""media""movies""tv_series""servers""access_control""settings""viewing_history""api_calls""server_metrics""task_history""panel_imports""playlist_editor""playlist_editor_history""providers""watch_folders""provider_history""admin_log""key_files"keysbooleanDefault:
falsekeep_adminsbooleanDefault:
truepassphrasestring
Response
202 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.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.