1
Vote

Backup by guid option (-g, guid ) doesn't work

description

This option doesn't work, VMs are always searched by name.

From the command line reference:
-g, guid 

If set, VMs to backup are specified by guid.

Cause of the problem

Program.cs:
VMNameType nameType = options.name ? VMNameType.ElementName : VMNameType.SystemName;
Even if -g, --guid option is specified, options.name (-n, --name) will return it's default value - true.

Solution

Check for options.guid instead:

Program.cs:
VMNameType nameType = options.guid ? VMNameType.SystemName : VMNameType.ElementName;
I've submitted this patch to the source code of the Program.cs via "Upload patch", hope this will suffice.

comments