Skip to content
NimbusNexus

Scheduled backups

On-demand backups cover the "I want a snapshot of this volume right now" case. Scheduled backups make copies of a volume on a timetable and keep the newest few.

A schedule has a frequency and a backup_quantity, the number of copies to keep (default 5). A daily schedule runs every day; weekly runs every 7 days and monthly every 30 days, counted from the day the schedule was created. Create one with POST /api/v1/backup_restore/backup_scheduler/; it belongs to your workspace. Then bind it to each volume with POST /api/v1/backup_restore/volume_scheduler/, giving the volume_id, the schedule_id and the type of copy, snapshot or backup. Binding answers 409 if the copies wouldn't fit your backup quota.

To send backup copies to external storage as well, set use_outside_storage on the binding and link the storage with POST /api/v1/backup_restore/volume_scheduler/config-storage (config_id, storage_id, priority). The schedule's outside_backup_quantity (default 1) sets how many copies to keep there.

The scheduler runs in the background. A failed run is retried, and one that keeps failing sends a notification. To keep one copy beyond the rotation, such as a year-end copy, set permanent: true on it with PATCH /api/v1/backup_restore/volume_backups/{volume_backup_id}.

What's next

  • Backups — the on-demand counterpart and the resource type schedules produce.
  • Block storage — the volumes schedules copy.

Reference

GET/api/v1/backups/schedulers/

Get Backup Schedule List

Lists block storage backup schedules in the current domain with pagination, sorting and frequency filtering.

Parameters

NameInTypeDescription
offsetqueryinteger | null—
limitqueryinteger | null—
sort_byquerystring | null—
sort_descqueryboolean—
frequencyquerystring | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 422Validation error
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/backups/schedulers/" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/backups/schedulers/

Create Backup Schedule

Creates a recurring backup schedule for block storage volumes after validating the project's backup quota.

Request body

FieldTypeDescription
frequencyBackupFrequencyEnum—
backup_quantityinteger | null—
outside_backup_quantityinteger | null—
enabledboolean | null—

Responses

  • 201Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 409Conflict
  • 422Validation error
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/backups/schedulers/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
PATCH/api/v1/backups/schedulers/{backup_schedule_id}

Update Backup Schedule

Updates an existing block storage backup schedule and revalidates quota when the retention is increased.

Parameters

NameInTypeDescription
backup_schedule_id*pathstring—

Request body

FieldTypeDescription
frequencyBackupFrequencyEnum | null—
backup_quantityinteger | null—
outside_backup_quantityinteger | null—
enabledboolean | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 404Not Found
  • 422Validation error
  • 500Internal Server Error

Example

curl -X PATCH "https://api.nimbusnexus.net/api/v1/backups/schedulers/<backup_schedule_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE/api/v1/backups/schedulers/{backup_schedule_id}

Delete Backup Schedule

Deletes a block storage backup schedule by its ID.

Parameters

NameInTypeDescription
backup_schedule_id*pathstring—

Responses

  • 204Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 404Not Found
  • 422Validation error
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/backups/schedulers/<backup_schedule_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/backups/volumes/schedulers/configs/

Get Volume Scheduler Conf List

Lists per-volume backup scheduler configurations for the volumes in the current project with pagination.

Parameters

NameInTypeDescription
limitqueryinteger | null—
offsetqueryinteger | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 404Not Found
  • 422Validation Error
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/backups/volumes/schedulers/configs/" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/backups/volumes/schedulers/configs/

Create Volume Scheduler Conf

Creates a per-volume backup scheduler configuration that links a volume to a backup schedule.

Request body

FieldTypeDescription
prefix_location_urlstring | null—
use_outside_storageOutsideStorageEnum | null—
enabledboolean | null—
volume_id*string—
schedule_id*string—
type*website__model__website__volume_backup__configuration__BackupTypeEnum—

Responses

  • 201Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 404Not Found
  • 409Conflict
  • 422Validation Error
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/backups/volumes/schedulers/configs/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "volume_id": "<volume_id>",
    "schedule_id": "<schedule_id>",
    "type": "snapshot"
  }'
POST/api/v1/backups/volumes/schedulers/configs/storage

Create Config Storage

Attaches an external backup storage destination to a per-volume scheduler configuration.

Request body

FieldTypeDescription
config_id*string—
storage_id*string—
priority*integer—

Responses

  • 201Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 404Not Found
  • 409Conflict
  • 422Validation Error
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/backups/volumes/schedulers/configs/storage" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "config_id": "<config_id>",
    "storage_id": "<storage_id>",
    "priority": 1
  }'
PATCH/api/v1/backups/volumes/schedulers/configs/storage/{config_storage_id}

Update Config Storage

Updates the external backup storage attachment of a per-volume scheduler configuration.

Parameters

NameInTypeDescription
config_storage_id*pathstring—

Request body

FieldTypeDescription
priorityinteger | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 404Not Found
  • 422Validation Error
  • 500Internal Server Error

Example

curl -X PATCH "https://api.nimbusnexus.net/api/v1/backups/volumes/schedulers/configs/storage/<config_storage_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE/api/v1/backups/volumes/schedulers/configs/storage/{config_storage_id}

Delete Config Storage

Removes an external backup storage attachment from a per-volume scheduler configuration.

Parameters

NameInTypeDescription
config_storage_id*pathstring—

Responses

  • 204Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 404Not Found
  • 422Validation error
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/backups/volumes/schedulers/configs/storage/<config_storage_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/backups/volumes/schedulers/configs/{config_id}

Get Volume Scheduler Conf Detail

Returns the detailed view of a per-volume backup scheduler configuration including its related entities.

Parameters

NameInTypeDescription
config_id*pathstring—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 404Not Found
  • 422Validation Error
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/backups/volumes/schedulers/configs/<config_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
PATCH/api/v1/backups/volumes/schedulers/configs/{config_id}

Update Volume Scheduler Conf

Updates an existing per-volume backup scheduler configuration by its ID.

Parameters

NameInTypeDescription
config_id*pathstring—

Request body

FieldTypeDescription
prefix_location_urlstring | null—
use_outside_storageOutsideStorageEnum | null—
enabledboolean | null—
volume_idstring | null—
schedule_idstring | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 404Not Found
  • 422Validation Error
  • 500Internal Server Error

Example

curl -X PATCH "https://api.nimbusnexus.net/api/v1/backups/volumes/schedulers/configs/<config_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE/api/v1/backups/volumes/schedulers/configs/{config_id}

Delete Volume Scheduler Conf

Requests asynchronous deletion of a per-volume backup scheduler configuration.

Parameters

NameInTypeDescription
config_id*pathstring—
cascadequeryboolean | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 404Not Found
  • 409Conflict
  • 422Validation Error
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/backups/volumes/schedulers/configs/<config_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"

Need to make a real call? Try these endpoints in the live Swagger UI →