OPNexusdocs

API: backups

POST /api/backups/run#

Run Now

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

Berechtigung backups.run (vorbereiten)

Antwort 200

GET /api/backups/status#

Status

Berechtigung backups.read (ansehen)

Antwort 200 BackupStatusRead

7 Felder anzeigen
FeldTypHinweise
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.

Berechtigung backups.read (ansehen)

Parameter

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

Antwort 200

GET /api/settings/backups#

Read

Berechtigung settings.view (ansehen)

Antwort 200 BackupSettingsRead

15 Felder anzeigen
FeldTypHinweise
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

Berechtigung backups.settings (verwalten)

Anfrage-Body BackupSettingsUpdate

13 Felder anzeigen
FeldTypHinweise
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

Antwort 200 BackupSettingsRead

15 Felder anzeigen
FeldTypHinweise
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.

Berechtigung backups.settings (verwalten)

Antwort 200