You are on page 1of 1

Backup

Use snapshot mode (no downtime) and non-default dump directory.

vzdump 777 --dumpdir /mnt/backup --mode snapshot

Restore using the CLI

Although the same command can be used to perform a backup for both KVM and LXC,
there are two separate commands available to restore the KVM and LXC virtual
machines:

qm restore: To restore KVM-based VMs


pct restore: To restore LXC containers

The following command format will restore KVM VMs through the command line:

#qmrestore <backup_file> <new/old_vmid> <options>

Based on the previous command, if we want to restore our example KVM #100 from a
backup onto local storage, it will appear as follows:

#qmrestore /var/lib/vz/dump/vzdump-qemu-110-2017_08_13-20_24_26.vma.lzo 110


-storage local

You might also like