• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

qmrestore Command Examples in Linux

by Deepika

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.

Filed Under: Linux

Some more articles you might also be interested in …

  1. kexec: command not found
  2. How to Add Locale on CentOS/RHEL 8
  3. ascii Command Examples in Linux
  4. ifrename: command not found
  5. How to map /dev/sdX and /dev/mapper/mpathY device from the /dev/dm-Z device
  6. dnf: command not found
  7. ctr: command not found
  8. How to use fdisk to partition a disk in Linux
  9. lxi Command Examples in Linux
  10. How to exclude a file/directory from auditd rules

You May Also Like

Primary Sidebar

Recent Posts

  • diffstat: Create a histogram from the output of the diff command
  • diffoscope: Compare files, archives, and directories
  • diff-pdf: Tool for comparing two PDFs
  • dict: Command line dictionary using the DICT protocol

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright