OPNexusdocs

API: backups

POST /api/backups/run#

Run Now

Back up every enabled host now (and copy offsite if configured).

Permission backups.run (prepare)

Response 200

GET /api/backups/status#

Status

Permission backups.read (look)

Response 200 BackupStatusRead

Show 7 fields
FieldTypeNotes
interval_hours *integer
keep_count *integer
last_offsite_error *string | null
last_offsite_ok_at *string (date-time) | null
last_run_at *string (date-time) | null
offsite_enabled *boolean
scheduled_enabled *boolean

GET /api/hosts/{host_id}/backup-diff#

Backup Diff

What changed between two stored backups of this host. Secrets are replaced by hashes.

Permission backups.read (look)

Parameters

host_id *pathstring (uuid)
aquerystring | nullOlder backup id (default: the one before b)
bquerystring | nullNewer backup id (default: the newest)

Response 200

GET /api/settings/backups#

Read

Permission settings.view (look)

Response 200 BackupSettingsRead

Show 15 fields
FieldTypeNotes
interval_hours *integer
keep_count *integer
last_offsite_error *string | null
last_offsite_ok_at *string (date-time) | null
last_run_at *string (date-time) | null
offsite_enabled *boolean
passphrase_set *boolean
s3_access_key *string | null
s3_bucket *string | null
s3_endpoint *string | null
s3_path_style *boolean
s3_prefix *string
s3_region *string
s3_secret_set *boolean
scheduled_enabled *boolean

PUT /api/settings/backups#

Update

Permission backups.settings (administer)

Request body BackupSettingsUpdate

Show 13 fields
FieldTypeNotes
clear_s3_secretboolean default: false
interval_hoursinteger | null
keep_countinteger | null
offsite_enabledboolean | null
passphrasestring | null
s3_access_keystring | null
s3_bucketstring | null
s3_endpointstring | null
s3_path_styleboolean | null
s3_prefixstring | null
s3_regionstring | null
s3_secret_keystring | null
scheduled_enabledboolean | null

Response 200 BackupSettingsRead

Show 15 fields
FieldTypeNotes
interval_hours *integer
keep_count *integer
last_offsite_error *string | null
last_offsite_ok_at *string (date-time) | null
last_run_at *string (date-time) | null
offsite_enabled *boolean
passphrase_set *boolean
s3_access_key *string | null
s3_bucket *string | null
s3_endpoint *string | null
s3_path_style *boolean
s3_prefix *string
s3_region *string
s3_secret_set *boolean
scheduled_enabled *boolean

POST /api/settings/backups/test-offsite#

Test Offsite

Write, read back and delete a probe object in the bucket.

Permission backups.settings (administer)

Response 200