VBoxManage list systemproperties --> Default machine folder: /root/VirtualBox VMs
$machine_folder results /root/VirtualBoxVMs
and the script doesn't backup machines .xml and snapshots
to fix:
substitute
machine_folder=$($vbox_command list systemproperties | grep "Default machine" | cut -d":" -f2 | sed -e 's/[[:space:]]//g')
with
machine_folder=$($vbox_command list systemproperties | grep "Default machine" | cut -d":" -f2 | sed -e 's/^[ \t]*//'
line
Log in to post a comment.
to fix:
substitute
machine_folder=$($vbox_command list systemproperties | grep "Default machine" | cut -d":" -f2 | sed -e 's/[[:space:]]//g')
with
machine_folder=$($vbox_command list systemproperties | grep "Default machine" | cut -d":" -f2 | sed -e 's/^[ \t]*//'
line