Backups
On this page
- List backup jobs
- Create a backup job
- Get a backup job
- Update a backup job
- Delete a backup job
- Back up now
- Backup and restore history
- Schedule presets
- Get a run with logs
- Download the stored backup object (admin)
- Restore a backup
- Recent system events
- Stop, safety-backup and restore plugin data; check health and roll back on failure
- List S3 destinations
- Create an S3 destination
- Update an S3 destination
- Delete an unused S3 destination
- Browse the bucket one level at a time. Query: prefix (folder path). Returns sub-folders and up to 1000 objects, newest first
- Delete one object from the bucket (admin). Query: key (full object key). The panel's run history is not changed
- Statistics of one S3 destination from backup history: jobs using it, stored backups and bytes, last success and failure, 30-day success ratio and bytes per day
- Test an S3 destination
- Count objects and bytes in the bucket (optionally under ?prefix=), with the 10 largest objects; stops after 200000 objects or 60 seconds (truncated=true)
- List managed panel backup jobs and remote copies (limit 1-200 runs)
- Check scheduled full-panel backup freshness and failing streak
- Delete only the selected panel backup destination copy
- Download the selected panel backup copy (encrypted archive)
- Verify a destination copy without executing SQL or changing live data
S3 destinations, backup jobs, runs, and restores
List backup jobs
/api/v1/backup-jobsResponses
200 List backup jobs
BackupJobView[]bandwidth_limit_bpsinteger | null (int64)compressionstringrequiredcompression_levelinteger (int32)requiredconsistencyanyrequiredcreated_atstring (date-time)requireddestination_idsstring (uuid)[]requiredenabledbooleanrequiredencryptedbooleanrequiredfilename_templatestringrequiredidstring (uuid)requiredlast_run_atstring | null (date-time)last_statusstring | nullnamestringrequirednext_run_atstring | null (date-time)notify_on_successbooleanrequiredpath_prefixstringrequiredretentionanyrequiredretriesinteger (int32)requiredschedule_cronstring | nullserver_idstring | null (uuid)service_idstring | null (uuid)target_kindstringrequiredtarget_specanyrequiredtimeout_secsinteger (int32)requiredtimezonestringrequiredtool_optionsanyrequiredverify_after_uploadbooleanrequired
Create a backup job
/api/v1/backup-jobsRequest bodyapplication/json
SaveBackupJob
bandwidth_limit_bpsinteger | null (int64)compressionstring | nullcompression_levelinteger | null (int32)consistencyobject | nulldestination_idsstring (uuid)[]enabledboolean | nullencryption_passphrasestring | nullClient-side encryption passphrase. Empty string removes encryption.
filename_templatestring | nullnamestring | nullnotify_on_successboolean | nullpath_prefixstring | nullretentionobject | nullretriesinteger | null (int32)schedule_cronstring | nullFive-field cron or a preset such as
@daily. Empty string clears it.server_idstring | null (uuid)service_idstring | null (uuid)target_kindstring | nulldatabase, volume, bind, or path.
target_specany{"volume": "name"},{"source": "/bind/source"}, or{"path": "/host/path"}.timeout_secsinteger | null (int32)timezonestring | nulltool_optionsobject | nullverify_after_uploadboolean | null
Responses
201 Create a backup job
BackupJobViewbandwidth_limit_bpsinteger | null (int64)compressionstringrequiredcompression_levelinteger (int32)requiredconsistencyanyrequiredcreated_atstring (date-time)requireddestination_idsstring (uuid)[]requiredenabledbooleanrequiredencryptedbooleanrequiredfilename_templatestringrequiredidstring (uuid)requiredlast_run_atstring | null (date-time)last_statusstring | nullnamestringrequirednext_run_atstring | null (date-time)notify_on_successbooleanrequiredpath_prefixstringrequiredretentionanyrequiredretriesinteger (int32)requiredschedule_cronstring | nullserver_idstring | null (uuid)service_idstring | null (uuid)target_kindstringrequiredtarget_specanyrequiredtimeout_secsinteger (int32)requiredtimezonestringrequiredtool_optionsanyrequiredverify_after_uploadbooleanrequired
Get a backup job
/api/v1/backup-jobs/{id}Responses
200 Get a backup job
BackupJobViewbandwidth_limit_bpsinteger | null (int64)compressionstringrequiredcompression_levelinteger (int32)requiredconsistencyanyrequiredcreated_atstring (date-time)requireddestination_idsstring (uuid)[]requiredenabledbooleanrequiredencryptedbooleanrequiredfilename_templatestringrequiredidstring (uuid)requiredlast_run_atstring | null (date-time)last_statusstring | nullnamestringrequirednext_run_atstring | null (date-time)notify_on_successbooleanrequiredpath_prefixstringrequiredretentionanyrequiredretriesinteger (int32)requiredschedule_cronstring | nullserver_idstring | null (uuid)service_idstring | null (uuid)target_kindstringrequiredtarget_specanyrequiredtimeout_secsinteger (int32)requiredtimezonestringrequiredtool_optionsanyrequiredverify_after_uploadbooleanrequired
Update a backup job
/api/v1/backup-jobs/{id}Request bodyapplication/json
SaveBackupJob
bandwidth_limit_bpsinteger | null (int64)compressionstring | nullcompression_levelinteger | null (int32)consistencyobject | nulldestination_idsstring (uuid)[]enabledboolean | nullencryption_passphrasestring | nullClient-side encryption passphrase. Empty string removes encryption.
filename_templatestring | nullnamestring | nullnotify_on_successboolean | nullpath_prefixstring | nullretentionobject | nullretriesinteger | null (int32)schedule_cronstring | nullFive-field cron or a preset such as
@daily. Empty string clears it.server_idstring | null (uuid)service_idstring | null (uuid)target_kindstring | nulldatabase, volume, bind, or path.
target_specany{"volume": "name"},{"source": "/bind/source"}, or{"path": "/host/path"}.timeout_secsinteger | null (int32)timezonestring | nulltool_optionsobject | nullverify_after_uploadboolean | null
Responses
200 Update a backup job
BackupJobViewbandwidth_limit_bpsinteger | null (int64)compressionstringrequiredcompression_levelinteger (int32)requiredconsistencyanyrequiredcreated_atstring (date-time)requireddestination_idsstring (uuid)[]requiredenabledbooleanrequiredencryptedbooleanrequiredfilename_templatestringrequiredidstring (uuid)requiredlast_run_atstring | null (date-time)last_statusstring | nullnamestringrequirednext_run_atstring | null (date-time)notify_on_successbooleanrequiredpath_prefixstringrequiredretentionanyrequiredretriesinteger (int32)requiredschedule_cronstring | nullserver_idstring | null (uuid)service_idstring | null (uuid)target_kindstringrequiredtarget_specanyrequiredtimeout_secsinteger (int32)requiredtimezonestringrequiredtool_optionsanyrequiredverify_after_uploadbooleanrequired
Delete a backup job
/api/v1/backup-jobs/{id}Responses
- 204 Delete a backup job
Back up now
/api/v1/backup-jobs/{id}/runResponses
202 Back up now
RunAcceptedrun_idstring (uuid)required
Backup and restore history
/api/v1/backup-jobs/{id}/runsResponses
200 Backup and restore history
BackupRunView[]checksumstring | nulldestination_idsstring (uuid)[]requiredduration_msinteger | null (int64)errorstring | nullfinished_atstring | null (date-time)idstring (uuid)requiredjob_idstring (uuid)requiredkindstringrequiredlogsstringrequiredmetaanyrequiredobject_keysstring[]requiredsize_bytesinteger | null (int64)started_atstring (date-time)requiredstatusstringrequiredtriggerstringrequired
Schedule presets
/api/v1/backup-presetsResponses
- 200 Schedule presets
Get a run with logs
/api/v1/backup-runs/{id}Responses
200 Get a run with logs
BackupRunViewchecksumstring | nulldestination_idsstring (uuid)[]requiredduration_msinteger | null (int64)errorstring | nullfinished_atstring | null (date-time)idstring (uuid)requiredjob_idstring (uuid)requiredkindstringrequiredlogsstringrequiredmetaanyrequiredobject_keysstring[]requiredsize_bytesinteger | null (int64)started_atstring (date-time)requiredstatusstringrequiredtriggerstringrequired
Download the stored backup object (admin)
/api/v1/backup-runs/{id}/downloadResponses
- 200 Download the stored backup object (admin)
Restore a backup
/api/v1/backup-runs/{id}/restoreRequest bodyapplication/json
RestoreRequest
target_pathstring | nullHost path for bind and path backups. Defaults to the original path.
target_service_idstring | null (uuid)Database or service to restore into. Defaults to the job's service.
target_volumestring | nullVolume name for volume backups. Defaults to the original volume.
Responses
202 Restore a backup
RunAcceptedrun_idstring (uuid)required
Recent system events
/api/v1/eventsResponses
200 Recent system events
EventView[]created_atstring (date-time)requireddelivered_atstring | null (date-time)idinteger (int64)requiredkindstringrequiredmessagestringrequiredpayloadanyrequiredserver_idstring | null (uuid)service_idstring | null (uuid)severitystringrequiredtitlestringrequired
Stop, safety-backup and restore plugin data; check health and roll back on failure
/api/v1/plugin-installs/{id}/restoreRequest bodyapplication/json
PluginRestore
run_idstring (uuid)required
Responses
202 Stop, safety-backup and restore plugin data; check health and roll back on failure
PluginInstallaccess_bypass_pathsstring[]requiredaccess_enabledbooleanrequiredbackup_job_idstring | null (uuid)created_atstring (date-time)requiredenvironment_idstring (uuid)requiredenvironment_namestringrequiredidstring (uuid)requiredimagestringrequiredinstalled_versionstringrequiredlast_errorstring | nulllatest_versionstring | nullpending_releasesPluginRelease[]requiredPluginRelease[]
html_urlstring | nullimagestringrequirednotesstringrequiredpublished_atstring | nullversionstringrequired
pluginstringrequiredsafety_run_idstring | null (uuid)server_idstring (uuid)requiredserver_namestringrequiredservice_idstring (uuid)requiredservice_namestringrequiredstatusstringrequiredupdate_availablebooleanrequiredupdated_atstring (date-time)required
List S3 destinations
/api/v1/s3-destinationsResponses
200 List S3 destinations
DestinationView[]access_key_hintstringrequiredLast four characters of the access key id.
bucketstringrequiredcreated_atstring (date-time)requiredendpointstring | nullidstring (uuid)requirednamestringrequiredpath_stylebooleanrequiredregionstringrequired
Create an S3 destination
/api/v1/s3-destinationsRequest bodyapplication/json
SaveDestination
access_key_idstring | nullbucketstringrequiredendpointstring | nullnamestringrequiredpath_styleboolean | nullregionstring | nullsecret_access_keystring | null
Responses
201 Create an S3 destination
DestinationViewaccess_key_hintstringrequiredLast four characters of the access key id.
bucketstringrequiredcreated_atstring (date-time)requiredendpointstring | nullidstring (uuid)requirednamestringrequiredpath_stylebooleanrequiredregionstringrequired
Update an S3 destination
/api/v1/s3-destinations/{id}Request bodyapplication/json
SaveDestination
access_key_idstring | nullbucketstringrequiredendpointstring | nullnamestringrequiredpath_styleboolean | nullregionstring | nullsecret_access_keystring | null
Responses
200 Update an S3 destination
DestinationViewaccess_key_hintstringrequiredLast four characters of the access key id.
bucketstringrequiredcreated_atstring (date-time)requiredendpointstring | nullidstring (uuid)requirednamestringrequiredpath_stylebooleanrequiredregionstringrequired
Delete an unused S3 destination
/api/v1/s3-destinations/{id}Responses
- 204 Delete an unused S3 destination
Browse the bucket one level at a time. Query: prefix (folder path). Returns sub-folders and up to 1000 objects, newest first
/api/v1/s3-destinations/{id}/objectsResponses
200 Browse the bucket one level at a time. Query: prefix (folder path). Returns sub-folders and up to 1000 objects, newest first
BucketListingobjectsBucketObject[]requiredBucketObject[]
keystringrequiredlast_modifiedstring (date-time)requiredsize_bytesinteger (int64)required
prefixstringrequiredprefixesstring[]required"Folders" one level below
prefix.truncatedbooleanrequired
Delete one object from the bucket (admin). Query: key (full object key). The panel's run history is not changed
/api/v1/s3-destinations/{id}/objectsResponses
200 Delete one object from the bucket (admin). Query: key (full object key). The panel's run history is not changed
DeletedObjectdeletedbooleanrequiredkeystringrequired
Statistics of one S3 destination from backup history: jobs using it, stored backups and bytes, last success and failure, 30-day success ratio and bytes per day
/api/v1/s3-destinations/{id}/statsResponses
200 Statistics of one S3 destination from backup history: jobs using it, stored backups and bytes, last success and failure, 30-day success ratio and bytes per day
DestinationStatsdailyDestinationDay[]requiredBytes written per day for the last 30 days, oldest first.
DestinationDay[]
bytesinteger (int64)requireddaystring (date)requiredfailedinteger (int64)requiredrunsinteger (int64)required
destination_idstring (uuid)requiredfailed_30dinteger (int64)requiredjobsDestinationJob[]requiredDestinationJob[]
enabledbooleanrequiredidstring (uuid)requiredlast_run_atstring | null (date-time)last_statusstring | nullnamestringrequiredschedule_cronstring | nulltarget_kindstringrequired
last_failurestring | nulllast_failure_atstring | null (date-time)last_success_atstring | null (date-time)runs_30dinteger (int64)requiredstored_backupsinteger (int64)requiredSuccessful backups whose copies are still kept (not expired by retention).
stored_bytesinteger (int64)requiredSize of those backups as recorded when they were written.
success_ratio_30dnumber | null (double)Success rate over the last 30 days, 0 to 1; null without runs.
Test an S3 destination
/api/v1/s3-destinations/{id}/testResponses
200 Test an S3 destination
TestResultmessagestringrequiredokbooleanrequired
Count objects and bytes in the bucket (optionally under ?prefix=), with the 10 largest objects; stops after 200000 objects or 60 seconds (truncated=true)
/api/v1/s3-destinations/{id}/usageResponses
200 Count objects and bytes in the bucket (optionally under ?prefix=), with the 10 largest objects; stops after 200000 objects or 60 seconds (truncated=true)
BucketUsagebytesinteger (int64)requiredlargestBucketObject[]requiredBucketObject[]
keystringrequiredlast_modifiedstring (date-time)requiredsize_bytesinteger (int64)required
newest_atstring | null (date-time)objectsinteger (int64)requiredoldest_atstring | null (date-time)prefixstringrequiredscanned_atstring (date-time)requiredtruncatedbooleanrequiredThe scan stopped at the object or time limit; real usage is higher.
List managed panel backup jobs and remote copies (limit 1-200 runs)
/api/v1/system/panel-backupsResponses
200 List managed panel backup jobs and remote copies (limit 1-200 runs)
PanelBackupInventoryhealthPanelBackupHealthrequiredPanelBackupHealth
age_secondsinteger | null (int64)configuredbooleanrequiredfailing_streakinteger (int64)requiredlast_successstring | null (date-time)stalebooleanrequiredwarningstring | null
jobsPanelBackupConfig[]requiredPanelBackupConfig[]
destination_idsstring (uuid)[]requiredenabledbooleanrequiredencryptedbooleanrequiredidstring (uuid)requiredincludes_historybooleanrequirednamestringrequiredretentionanyrequiredschedule_cronstring | nulltarget_kindstringrequiredtimezonestringrequired
objectsPanelBackupObject[]requiredPanelBackupObject[]
created_atstring (date-time)requireddestination_idstring (uuid)requiredencryptedbooleanrequiredjob_idstring (uuid)requiredkeystringrequiredmanifestanypresencestringrequiredrun_idstring (uuid)requiredsize_bytesinteger | null (int64)verificationPanelBackupVerification | nullPanelBackupVerification | null
One of:
PanelBackupVerificationerrorstring | nullfinished_atstring | null (date-time)manifestanystarted_atstring (date-time)requiredstatusstringrequired
null
versionstring | null
Check scheduled full-panel backup freshness and failing streak
/api/v1/system/panel-backups/healthResponses
200 Check scheduled full-panel backup freshness and failing streak
PanelBackupHealthage_secondsinteger | null (int64)configuredbooleanrequiredfailing_streakinteger (int64)requiredlast_successstring | null (date-time)stalebooleanrequiredwarningstring | null
Delete only the selected panel backup destination copy
/api/v1/system/panel-backups/{id}/copies/{destination}Responses
- 204 Delete only the selected panel backup destination copy
Download the selected panel backup copy (encrypted archive)
/api/v1/system/panel-backups/{id}/copies/{destination}/downloadResponses
- 200 Download the selected panel backup copy (encrypted archive)
Verify a destination copy without executing SQL or changing live data
/api/v1/system/panel-backups/{id}/verifyRequest bodyapplication/json
VerifyPanelBackup
destination_idstring (uuid)required
Responses
202 Verify a destination copy without executing SQL or changing live data
PanelBackupVerificationerrorstring | nullfinished_atstring | null (date-time)manifestanystarted_atstring (date-time)requiredstatusstringrequired