Backup is not copying main vdi when using snapshots
Brought to you by:
markbaa
Backup is not working as expected when using snapshots. When a snapshot is present, the main vdi file is not copied, even if it's different from previous backups.
Problem is that once a snapshot is made, the main vdi (according to info from 'VBoxManage showvminfo') is pointing to the snapshot vdi instead of the expected, chained main vdi in the vdi folder.
Using this piece of shell script I can enumerate the UUID and use showhdinfo to get Location of all registered HD's
for HDINFO in
VBoxManage showvminfo $vboxname| grep "(UUID: "|sed -n 's/.*UUID: //;s/).*//p'
do
VBoxManage showhdinfo $HDINFO|grep Location
done
This is just a starting point but I think it might work around the problem of getting all the HD images not just the SnapShots.
Last edit: Todd Kennedy 2013-10-02