patch for getting backups to work properly
Brought to you by:
markbaa
I created this patch from trunk code because the backups were not working on my system. My virtualbox installation has spaces in the path names and also the VBox image name was getting clobbered by other devices that where attached. So I fixed a few things and now it works perfectly.
Forgot to mention this works against virtualbox version 4.1.12
Line 7-8: it is not clear for what problem the addtion of the option '-m 1' in the solution: are there multiple name-entroes or soemthing?
Line 19-23: copying of either .xml or .vbox should be conditional, to provide backwards compatibility
Line 36 and on: this should solve the problem of spaces in the vdi-name; test before applying this (part of) the patch
Line 10-11: obsololete, because v 0.5 is already 4.x compatible
According to the description of this patch: http://sourceforge.net/tracker/?func=detail&aid=2990664&group_id=239993&atid=1111631
.... apparantly 'VBoxManage showvminfo' returns multiple lines of 'Name:'
That's why the '-m 1' option in line 7-8 as suggested in this patch is valid.
For the problem of multiple return of lines with 'Name:', is is also possible to use the option --machinereadable. This will result in more readable code. However, this option is not available in 2.x, so that version will definitely not work. But since we only support 3.x and 4.x, it would not be a problem I guess.