restore_backup
Restore a VM or container from a backup file by specifying the backup volume and target node. Optionally assign a new VMID, choose storage, and set guest type.
Instructions
Restore a VM or container from a backup file.
Args: volid: Volume ID of the backup (e.g. 'local:backup/vzdump-qemu-100-2024_03_04.vma.zst'). Use list_backups to find available backups. node: Target node for the restored guest. vmid: Optional VMID for the restored guest. Auto-assigned if not provided. storage_pool: Storage for restored disks (default 'local-lvm'). guest_type: Type of guest: 'vm' or 'container'. confirm: Must be true to execute. First call without confirm shows a warning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | ||
| vmid | No | ||
| volid | Yes | ||
| confirm | No | ||
| guest_type | No | vm | |
| storage_pool | No | local-lvm |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |