Take an on-demand backup of a Raff VM with Terraform. Async — the resource returns once the backup record exists. For recurring backups, use raff_backup_schedule.
Updated May 10, 2026Captures 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.
Queues a backup. Returns immediately with the backup record
Change any input
Replacement — backups are immutable
terraform destroy
Deletes the backup
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.
# Single backup by UUIDdata "raff_backup" "pre_release" { id = "<backup-uuid>"}# All backups in the current project, optionally filtered by VMdata "raff_backups" "for_api" { vm_id = raff_vm.api.id}