Skip to main content
Updated May 10, 2026 Captures a single on-demand backup of a VM. The source VM is immutable — backups cannot move between VMs. The call is async: the resource returns as soon as the backup record exists. For recurring policies use raff_backup_schedule instead — schedule-managed backups are auto-pruned and must not be managed via raff_backup.

Example

Argument reference

Required

Optional

Attribute reference (computed)

Lifecycle

The status field starts at pending / creating and progresses to ready asynchronously. If you need to wait for ready before continuing, poll the data source or use the CLI.

Importing existing backups

Permissions

The API key needs vm.backup in the project (covers create, manage, delete on backups). The system role Project Admin grants this.

Data sources

raff_backup_schedule

Recurring backups with retention.

raff_snapshot

Lighter-weight point-in-time snapshots.

CLI: raff backup

Imperative equivalent.
Last modified on May 11, 2026