Backups
Trong trang này
- 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
- Test an S3 destination
- 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-jobsPhản hồi
200 List backup jobs
BackupJobView[]bandwidth_limit_bpsinteger | null (int64)compressionstringbắt buộccompression_levelinteger (int32)bắt buộcconsistencyanybắt buộccreated_atstring (date-time)bắt buộcdestination_idsstring (uuid)[]bắt buộcenabledbooleanbắt buộcencryptedbooleanbắt buộcfilename_templatestringbắt buộcidstring (uuid)bắt buộclast_run_atstring | null (date-time)last_statusstring | nullnamestringbắt buộcnext_run_atstring | null (date-time)notify_on_successbooleanbắt buộcpath_prefixstringbắt buộcretentionanybắt buộcretriesinteger (int32)bắt buộcschedule_cronstring | nullserver_idstring | null (uuid)service_idstring | null (uuid)target_kindstringbắt buộctarget_specanybắt buộctimeout_secsinteger (int32)bắt buộctimezonestringbắt buộctool_optionsanybắt buộcverify_after_uploadbooleanbắt buộc
Create a backup job
/api/v1/backup-jobsNội dung gửi lênapplication/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
Phản hồi
201 Create a backup job
BackupJobViewbandwidth_limit_bpsinteger | null (int64)compressionstringbắt buộccompression_levelinteger (int32)bắt buộcconsistencyanybắt buộccreated_atstring (date-time)bắt buộcdestination_idsstring (uuid)[]bắt buộcenabledbooleanbắt buộcencryptedbooleanbắt buộcfilename_templatestringbắt buộcidstring (uuid)bắt buộclast_run_atstring | null (date-time)last_statusstring | nullnamestringbắt buộcnext_run_atstring | null (date-time)notify_on_successbooleanbắt buộcpath_prefixstringbắt buộcretentionanybắt buộcretriesinteger (int32)bắt buộcschedule_cronstring | nullserver_idstring | null (uuid)service_idstring | null (uuid)target_kindstringbắt buộctarget_specanybắt buộctimeout_secsinteger (int32)bắt buộctimezonestringbắt buộctool_optionsanybắt buộcverify_after_uploadbooleanbắt buộc
Get a backup job
/api/v1/backup-jobs/{id}Phản hồi
200 Get a backup job
BackupJobViewbandwidth_limit_bpsinteger | null (int64)compressionstringbắt buộccompression_levelinteger (int32)bắt buộcconsistencyanybắt buộccreated_atstring (date-time)bắt buộcdestination_idsstring (uuid)[]bắt buộcenabledbooleanbắt buộcencryptedbooleanbắt buộcfilename_templatestringbắt buộcidstring (uuid)bắt buộclast_run_atstring | null (date-time)last_statusstring | nullnamestringbắt buộcnext_run_atstring | null (date-time)notify_on_successbooleanbắt buộcpath_prefixstringbắt buộcretentionanybắt buộcretriesinteger (int32)bắt buộcschedule_cronstring | nullserver_idstring | null (uuid)service_idstring | null (uuid)target_kindstringbắt buộctarget_specanybắt buộctimeout_secsinteger (int32)bắt buộctimezonestringbắt buộctool_optionsanybắt buộcverify_after_uploadbooleanbắt buộc
Update a backup job
/api/v1/backup-jobs/{id}Nội dung gửi lênapplication/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
Phản hồi
200 Update a backup job
BackupJobViewbandwidth_limit_bpsinteger | null (int64)compressionstringbắt buộccompression_levelinteger (int32)bắt buộcconsistencyanybắt buộccreated_atstring (date-time)bắt buộcdestination_idsstring (uuid)[]bắt buộcenabledbooleanbắt buộcencryptedbooleanbắt buộcfilename_templatestringbắt buộcidstring (uuid)bắt buộclast_run_atstring | null (date-time)last_statusstring | nullnamestringbắt buộcnext_run_atstring | null (date-time)notify_on_successbooleanbắt buộcpath_prefixstringbắt buộcretentionanybắt buộcretriesinteger (int32)bắt buộcschedule_cronstring | nullserver_idstring | null (uuid)service_idstring | null (uuid)target_kindstringbắt buộctarget_specanybắt buộctimeout_secsinteger (int32)bắt buộctimezonestringbắt buộctool_optionsanybắt buộcverify_after_uploadbooleanbắt buộc
Delete a backup job
/api/v1/backup-jobs/{id}Phản hồi
- 204 Delete a backup job
Back up now
/api/v1/backup-jobs/{id}/runPhản hồi
202 Back up now
RunAcceptedrun_idstring (uuid)bắt buộc
Backup and restore history
/api/v1/backup-jobs/{id}/runsPhản hồi
200 Backup and restore history
BackupRunView[]checksumstring | nulldestination_idsstring (uuid)[]bắt buộcduration_msinteger | null (int64)errorstring | nullfinished_atstring | null (date-time)idstring (uuid)bắt buộcjob_idstring (uuid)bắt buộckindstringbắt buộclogsstringbắt buộcmetaanybắt buộcobject_keysstring[]bắt buộcsize_bytesinteger | null (int64)started_atstring (date-time)bắt buộcstatusstringbắt buộctriggerstringbắt buộc
Schedule presets
/api/v1/backup-presetsPhản hồi
- 200 Schedule presets
Get a run with logs
/api/v1/backup-runs/{id}Phản hồi
200 Get a run with logs
BackupRunViewchecksumstring | nulldestination_idsstring (uuid)[]bắt buộcduration_msinteger | null (int64)errorstring | nullfinished_atstring | null (date-time)idstring (uuid)bắt buộcjob_idstring (uuid)bắt buộckindstringbắt buộclogsstringbắt buộcmetaanybắt buộcobject_keysstring[]bắt buộcsize_bytesinteger | null (int64)started_atstring (date-time)bắt buộcstatusstringbắt buộctriggerstringbắt buộc
Download the stored backup object (admin)
/api/v1/backup-runs/{id}/downloadPhản hồi
- 200 Download the stored backup object (admin)
Restore a backup
/api/v1/backup-runs/{id}/restoreNội dung gửi lênapplication/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.
Phản hồi
202 Restore a backup
RunAcceptedrun_idstring (uuid)bắt buộc
Recent system events
/api/v1/eventsPhản hồi
200 Recent system events
EventView[]created_atstring (date-time)bắt buộcdelivered_atstring | null (date-time)idinteger (int64)bắt buộckindstringbắt buộcmessagestringbắt buộcpayloadanybắt buộcserver_idstring | null (uuid)service_idstring | null (uuid)severitystringbắt buộctitlestringbắt buộc
Stop, safety-backup and restore plugin data; check health and roll back on failure
/api/v1/plugin-installs/{id}/restoreNội dung gửi lênapplication/json
PluginRestore
run_idstring (uuid)bắt buộc
Phản hồi
202 Stop, safety-backup and restore plugin data; check health and roll back on failure
PluginInstallaccess_bypass_pathsstring[]bắt buộcaccess_enabledbooleanbắt buộcbackup_job_idstring | null (uuid)created_atstring (date-time)bắt buộcenvironment_idstring (uuid)bắt buộcenvironment_namestringbắt buộcidstring (uuid)bắt buộcimagestringbắt buộcinstalled_versionstringbắt buộclast_errorstring | nulllatest_versionstring | nullpending_releasesPluginRelease[]bắt buộcPluginRelease[]
html_urlstring | nullimagestringbắt buộcnotesstringbắt buộcpublished_atstring | nullversionstringbắt buộc
pluginstringbắt buộcsafety_run_idstring | null (uuid)server_idstring (uuid)bắt buộcserver_namestringbắt buộcservice_idstring (uuid)bắt buộcservice_namestringbắt buộcstatusstringbắt buộcupdate_availablebooleanbắt buộcupdated_atstring (date-time)bắt buộc
List S3 destinations
/api/v1/s3-destinationsPhản hồi
200 List S3 destinations
DestinationView[]access_key_hintstringbắt buộcLast four characters of the access key id.
bucketstringbắt buộccreated_atstring (date-time)bắt buộcendpointstring | nullidstring (uuid)bắt buộcnamestringbắt buộcpath_stylebooleanbắt buộcregionstringbắt buộc
Create an S3 destination
/api/v1/s3-destinationsNội dung gửi lênapplication/json
SaveDestination
access_key_idstring | nullbucketstringbắt buộcendpointstring | nullnamestringbắt buộcpath_styleboolean | nullregionstring | nullsecret_access_keystring | null
Phản hồi
201 Create an S3 destination
DestinationViewaccess_key_hintstringbắt buộcLast four characters of the access key id.
bucketstringbắt buộccreated_atstring (date-time)bắt buộcendpointstring | nullidstring (uuid)bắt buộcnamestringbắt buộcpath_stylebooleanbắt buộcregionstringbắt buộc
Update an S3 destination
/api/v1/s3-destinations/{id}Nội dung gửi lênapplication/json
SaveDestination
access_key_idstring | nullbucketstringbắt buộcendpointstring | nullnamestringbắt buộcpath_styleboolean | nullregionstring | nullsecret_access_keystring | null
Phản hồi
200 Update an S3 destination
DestinationViewaccess_key_hintstringbắt buộcLast four characters of the access key id.
bucketstringbắt buộccreated_atstring (date-time)bắt buộcendpointstring | nullidstring (uuid)bắt buộcnamestringbắt buộcpath_stylebooleanbắt buộcregionstringbắt buộc
Delete an unused S3 destination
/api/v1/s3-destinations/{id}Phản hồi
- 204 Delete an unused S3 destination
Test an S3 destination
/api/v1/s3-destinations/{id}/testPhản hồi
200 Test an S3 destination
TestResultmessagestringbắt buộcokbooleanbắt buộc
List managed panel backup jobs and remote copies (limit 1-200 runs)
/api/v1/system/panel-backupsPhản hồi
200 List managed panel backup jobs and remote copies (limit 1-200 runs)
PanelBackupInventoryhealthPanelBackupHealthbắt buộcPanelBackupHealth
age_secondsinteger | null (int64)configuredbooleanbắt buộcfailing_streakinteger (int64)bắt buộclast_successstring | null (date-time)stalebooleanbắt buộcwarningstring | null
jobsPanelBackupConfig[]bắt buộcPanelBackupConfig[]
destination_idsstring (uuid)[]bắt buộcenabledbooleanbắt buộcencryptedbooleanbắt buộcidstring (uuid)bắt buộcincludes_historybooleanbắt buộcnamestringbắt buộcretentionanybắt buộcschedule_cronstring | nulltarget_kindstringbắt buộctimezonestringbắt buộc
objectsPanelBackupObject[]bắt buộcPanelBackupObject[]
created_atstring (date-time)bắt buộcdestination_idstring (uuid)bắt buộcencryptedbooleanbắt buộcjob_idstring (uuid)bắt buộckeystringbắt buộcmanifestanypresencestringbắt buộcrun_idstring (uuid)bắt buộcsize_bytesinteger | null (int64)verificationPanelBackupVerification | nullPanelBackupVerification | null
Một trong:
PanelBackupVerificationerrorstring | nullfinished_atstring | null (date-time)manifestanystarted_atstring (date-time)bắt buộcstatusstringbắt buộc
null
versionstring | null
Check scheduled full-panel backup freshness and failing streak
/api/v1/system/panel-backups/healthPhản hồi
200 Check scheduled full-panel backup freshness and failing streak
PanelBackupHealthage_secondsinteger | null (int64)configuredbooleanbắt buộcfailing_streakinteger (int64)bắt buộclast_successstring | null (date-time)stalebooleanbắt buộcwarningstring | null
Delete only the selected panel backup destination copy
/api/v1/system/panel-backups/{id}/copies/{destination}Phản hồi
- 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}/downloadPhản hồi
- 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}/verifyNội dung gửi lênapplication/json
VerifyPanelBackup
destination_idstring (uuid)bắt buộc
Phản hồi
202 Verify a destination copy without executing SQL or changing live data
PanelBackupVerificationerrorstring | nullfinished_atstring | null (date-time)manifestanystarted_atstring (date-time)bắt buộcstatusstringbắt buộc