Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.rafftechnologies.com/llms.txt

Use this file to discover all available pages before exploring further.

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

resource "raff_backup" "pre_release" {
  vm_id = raff_vm.api.id
  name  = "api-pre-v3.0-release"
}

Argument reference

Required

ArgumentTypeDescription
vm_idstring (UUID)Source VM. ForceNew — backup the new VM instead of moving

Optional

ArgumentTypeDescription
namestringDisplay name. Defaults to a timestamped name set by the API. ForceNew

Attribute reference (computed)

AttributeDescription
idBackup UUID
statusLifecycle status — pending, creating, ready, restoring, failed
storage_sizeBackup size in GB
regionRegion
expire_dateExpiration timestamp (when the backup is auto-deleted)
account_id / project_idOwning account / project UUIDs
created_atRFC3339 timestamp

Lifecycle

OperationBehavior
terraform apply (create)Queues a backup. Returns immediately with the backup record
Change any inputReplacement — backups are immutable
terraform destroyDeletes 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.

Importing existing backups

terraform import raff_backup.pre_release <backup-uuid>

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

# Single backup by UUID
data "raff_backup" "pre_release" {
  id = "<backup-uuid>"
}

# All backups in the current project, optionally filtered by VM
data "raff_backups" "for_api" {
  vm_id = raff_vm.api.id
}

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