Skip to content
NimbusNexus

Backups

A backup is a point-in-time copy of one block volume, of one of two types: a snapshot, kept by the block-storage service alongside the volume, or a backup, a separate full copy. You make them on demand, or a schedule makes them for you.

Backups vs snapshots

Both are point-in-time copies; they differ in operational shape:

type: snapshottype: backup
What it isA snapshot kept with the volumeA separate full copy, which can also go to your own storage
Created byA direct call or a scheduleA direct call or a schedule
Restored withPOST /api/v1/backup_restore/volume_backups/snapshot_restorePOST /api/v1/backup_restore/volume_backups/backup_restore

A snapshot belongs to its volume: deleting the volume with cascade: true (DELETE /api/v1/storage/) deletes its snapshots too.

Making a copy

POST /api/v1/backup_restore/volume_backups/create_backup copies a volume now. Give the volume_id and the type, snapshot or backup, plus an optional name, description and permanent. For a backup, storage_ids also sends the copy to external storage connections you've set up with POST /api/v1/external/connections/.

The call queues the work and answers right away, or answers 409 if the copy wouldn't fit your backup quota. GET /api/v1/backup_restore/volume_backups/ lists your copies, filtered by backup_types and statuses, with limit (default 10) and offset. A copy's status is pending, in_progress, completed or failed.

Scheduled copies

A schedule makes copies for you. Create one with POST /api/v1/backup_restore/backup_scheduler/, giving a frequency and a backup_quantity, then bind it to each volume with POST /api/v1/backup_restore/volume_scheduler/, giving the volume_id, the schedule_id and the type. Scheduled backups has the details.

Retention

A schedule keeps the newest backup_quantity copies (default 5) of each volume bound to it, and deletes older ones as new copies arrive; outside_backup_quantity (default 1) does the same for the copies in each external storage. Copies you make on demand stay until you delete them.

To keep a copy out of that rotation, set permanent: true on it, when you make it or later with PATCH /api/v1/backup_restore/volume_backups/{volume_backup_id}.

Delete one copy with DELETE /api/v1/backup_restore/volume_backups/single/{volume_backup_id}, or several with DELETE /api/v1/backup_restore/volume_backups/bulk and their ids in the backup_ids query parameter.

Restoring

Restore a snapshot with POST /api/v1/backup_restore/volume_backups/snapshot_restore, and a backup with POST /api/v1/backup_restore/volume_backups/backup_restore. Both take {"backup_id": "…"}, queue the work and answer right away. The copy must be completed and of the endpoint's type; otherwise the call answers 409.

A restore works in place. It builds a new volume from the copy, the same size and in the same availability zone as the original, and puts it where the original was:

  • A data volume is detached from its VM, and the restored volume is attached in its place.
  • For a VM's boot volume, the VM is rebuilt on the restored disk. The new VM takes over the old one's ports and floating IPs, and the old VM is deleted. The VM gets a new id; the restored disk keeps the SSH keys it had.

The original volume's copies and schedule bindings move over to the restored volume.

What's next

Reference

GET/api/v1/backups/volumes/

List Volume Backups

Lists volume backups for the project's volumes with filtering by status and type plus pagination and sorting.

Parameters

NameInTypeDescription
limitqueryinteger | null—
offsetqueryinteger | null—
statusesqueryBackupStatusEnum | null—
backup_typesquerywebsite__model__website__volume_backup__configuration__BackupTypeEnum | null—
sort_byquerystring | null—
sort_descqueryboolean—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

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

Create Volume Backup Run Trigger

Queues a job that creates a new backup of a block storage volume after validating the project's quota.

Request body

FieldTypeDescription
namestring | null—
descriptionstring | null—
schedule_config_idstring | null—
volume_idstring | null—
type*website__model__website__volume_backup__configuration__BackupTypeEnum—
storage_idsarray of string | null—
permanentboolean—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation Error
  • 429Too Many Requests
  • 500Internal Server Error
  • 503Service Unavailable

Example

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

Delete Volume Backup Bulk

Deletes multiple volume backups in one call, removing them from block storage and any external storage destinations.

Request body

FieldTypeDescription
backup_ids*array of string—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/backups/volumes/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "backup_ids": [
      "<backup_id>"
    ]
  }'
POST/api/v1/backups/volumes/schedules/trigger

Volume Backup Run Trigger By Schedule

Triggers the volume backup scheduler job for the requested frequency to evaluate due schedules.

Request body

FieldTypeDescription
frequency*"daily" | "weekly" | "monthly"—

Responses

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

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/backups/volumes/schedules/trigger" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "frequency": "daily"
  }'
PATCH/api/v1/backups/volumes/{volume_backup_id}

Update Volume Backup

Updates the editable attributes of an existing volume backup record.

Parameters

NameInTypeDescription
volume_backup_id*pathstring—

Request body

FieldTypeDescription
namestring | null—
descriptionstring | null—
permanentboolean | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

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

Run Restore Queue Job

Queues a job that restores a completed volume backup or snapshot back into a block storage volume.

Parameters

NameInTypeDescription
volume_backup_id*pathstring—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error
  • 503Service Unavailable

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/backups/volumes/<volume_backup_id>/restore" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/backups/volumes/{volume_backup_id}/upload

Upload Existing Volume Backup To Outside Storage

Queues jobs to upload an existing completed volume backup into one or more external storage destinations.

Parameters

NameInTypeDescription
volume_backup_id*pathstring—

Request body

FieldTypeDescription
storage_idsarray of string | null—

Responses

  • 200Successful Response
  • 422Validation Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/backups/volumes/<volume_backup_id>/upload" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

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