restart vm upon backup completion

This commit is contained in:
Thomas
2022-04-20 00:43:49 +02:00
parent 7d32274239
commit 3a518f0946
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@@ -26,10 +26,11 @@ function checkRunning {
machine=$1 machine=$1
if ( checkRunning $machine ) ; then if ( checkRunning $machine ) ; then
echo vboxmanage controlvm $machine acpipowerbutton shutdown vboxmanage controlvm $machine acpipowerbutton shutdown
sleep 60 sleep 60
echo rsync -a /srv/VM/Win/roofline ${outputdir}/ echo rsync -a /srv/VM/Win/roofline ${outputdir}/
ret=$? ret=$?
vboxmanager start $machine
exit $ret exit $ret
fi fi
exit 43 exit 43