VZrestore - where is the manual?

gkovacs

Renowned Member
Dec 22, 2008
516
51
93
Budapest, Hungary
We have a PVE 1.9 cluster, all latest packages, running kernel 2.6.32-4.

Node 1 has many OpenVZ VE's, node 2 is currently empty. VZdump backups are on NFS.

I'm trying to restore an OpenVZ VE (VMID 108) from backup to node 2, but to a different VMID (let's say 208), because I want the same VE to run on both nodes.
What is the VZrestore command line I need for this?

Do I simply run "vzrestore /mnt/pve/nfs/vzdump-openvz-108.tar 208" on node 2?
Do I have to create VE 208 before that?

Google search shows several vzrestore options (-i, -e), but the manual does not show any options:
http://pve.proxmox.com/wiki/Vzrestore_manual
 
Last edited:
I'm not sure... maybe not options, but a couple of examples for usage. Vzrestore looks like a black box, and the manual doesn't help.

- Does "vzrestore 108.tar 208" create a new VE from the backup? Or do I have to create VE 208 before?
- Does "vzrestore 108.tar 108" create another VE with the ID 108? What happens if there is already a VE 108 in the cluster, will there be two 108s?
What happens if 108 exists on the same server, does it get overwritten?
 
- Does "vzrestore 108.tar 208" create a new VE from the backup? Or do I have to create VE 208 before?

Yes, it creates a new VM

- Does "vzrestore 108.tar 108" create another VE with the ID 108? What happens if there is already a VE 108 in the cluster, will there be two 108s?

Creating 2 VM with the same ID in the cluster is a bad idea (Note: PVE 2.0 will prevent that and throw an error).

What happens if 108 exists on the same server, does it get overwritten?

No, you will get an error instead.