qmrestore Command Examples in Linux

The qmrestore command is a utility tool in the Proxmox Virtual Environment (PVE) that allows you to restore virtual machine backups created by the vzdump command. vzdump is a backup and restore tool for OpenVZ containers and KVM virtual machines that are managed by Proxmox VE.

The qmrestore command can be used to restore backups of virtual machines that were created using vzdump. It takes the backup file as input, and then it restores the virtual machine from the backup file.

qmrestore Command Examples

1. Restore virtual machine from given backup file on the original storage:

# qmrestore {{path/to/vzdump-qemu-100.vma.lzo}} {{100}}

2. Overwrite existing virtual machine from a given backup file on the original storage:

# qmrestore {{path/to/vzdump-qemu-100.vma.lzo}} {{100}} --force true

3. Restore the virtual machine from a given backup file on specific storage:

# qmrestore {{path/to/vzdump-qemu-100.vma.lzo}} {{100}} --storage {{local}}

4. Start virtual machine immediately from the backup while restoring in the background (only on Proxmox Backup Server):

# qmrestore {{path/to/vzdump-qemu-100.vma.lzo}} {{100}} --liverestore true

Summary

The qmrestore command is a powerful tool that can help you quickly restore virtual machines from backups. It is important to note that restoring virtual machines from backups can take some time, depending on the size of the virtual machine and the resources of the host machine.

Overall, qmrestore is a useful command for Proxmox VE users who need to restore virtual machine backups created by vzdump. For more information on how to use qmrestore, you can refer to the official Proxmox VE documentation at https://pve.proxmox.com/pve-docs/qmrestore.1.html.

Related Post