backup_restore
Restore a QEMU virtual machine from a backup archive. Supports overwriting existing VMs with a force option and dry-run preview to verify actions without executing.
Instructions
[WRITE] Restore a QEMU VM from a backup archive. HIGH RISK. Returns task UPID.
With force=True this OVERWRITES an existing VM (destructive, no undo). Restoring into a free vmid records a delete as the safe inverse. Confirm with the user before calling. Pass dry_run=True to preview: it runs the same existing-VM guard (a preview that would be refused for overwriting without force refuses too) and reports whether it would overwrite or create.
Args: vmid: Target VM id to restore into. archive: Backup volume id / archive path (see backup_list). storage: Storage to place the restored disks on. force: Overwrite vmid if it already exists (destructive). dry_run: If True, preview (runs the existing-VM guard) without restoring. target: Proxmox target name from config. node: Node name; omit to use the configured default node.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | No | ||
| vmid | Yes | ||
| force | No | ||
| target | No | ||
| archive | Yes | ||
| dry_run | No | ||
| storage | Yes |