backup_restore
Restore a QEMU VM from a backup archive into a target VM ID and storage, with optional force overwrite or dry-run preview to avoid destructive changes.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vmid": "<vmid>",
"archive": "<archive>",
"storage": "<storage>"
},
"name": "backup_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | No | ||
| vmid | Yes | ||
| force | No | ||
| target | No | ||
| archive | Yes | ||
| dry_run | No | ||
| storage | Yes |