Backing Up Proxmox OpenVZ container and restore to LXC server

Unix

29 Sep 2017

Backing Up Proxmox OpenVZ container and restore to LXC server

Preston Garrison III 0 Comments

First you need to backup the vm you want to transfer using vzdump

vzdump -dumpdir=./ 100

 This will dump vm with the id 100 to your current directory

Next compress the file and transfer it to the new server

gzip vzdump-openvz-100-2017_09_24-22_14_55.tar 
scp vzdump-openvz-100-2017_09_24-22_14_55.tar.gz newserver:/vmbackups

Now on the new server run these commands to restore the vm

pct restore 100 vzdump-openvz-100-2017_09_24-22_14_55.tar -storage local-zfs

 the vm should now be restored