vzdump vm and restore to new vm

nivlek

New Member
Apr 24, 2009
18
0
1
Hello

I have searched in the forums but have not found an answer to the following problem.

Using vzdump I dumped VM 102. This has the following hard disk filename:

vm-102-disk.qcow2.

I then restored from the backup to a new VM 104 this also has the hard disk filename vm-102-disk.qcow2. This is stored in a different directory.

Over a period of time this could become very confusing. I think the restore task should create the restored file with the the normal naming convention.

nivlek
 
Hello

I have searched in the forums but have not found an answer to the following problem.

Using vzdump I dumped VM 102. This has the following hard disk filename:

vm-102-disk.qcow2.

I then restored from the backup to a new VM 104 this also has the hard disk filename vm-102-disk.qcow2. This is stored in a different directory.

Over a period of time this could become very confusing. I think the restore task should create the restored file with the the normal naming convention.

nivlek

you mean if you restore to VMID 104 you want to see vm-104-disk.qcow2? this is not possible - a restore job cannot and should not rename file names.
 
Tom - why not ?

e.g. if you rename the diskfile the VM will not start any more as the config file points to the old file name.
 
Yes but I am not going to waste your time or mine creating a list.

please tell me just one, this will help to understand what you want.
 
Tom here is a simple example
http://www.ss64.com/bash/mv.html

together with a change in the config to refer to the new file name would, in my opinion, be better than the confusion caused by the current implementation.

thanks but I am looking for a backup suite doing this. I know mv command :-).

I understand your request but its on a low priority in the current stage of the project here - but as vzdump is also GPL licensed feel free to provide a patch.