restart vm upon backup completion
This commit is contained in:
BIN
.vmbackup.sh.swp
BIN
.vmbackup.sh.swp
Binary file not shown.
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user