- Enable Windows backup on each cluster node.
- Create a batch what will include backup of all VMs and Quorum in the cluster.
- Using Windows Scheduler run the batch (with high privileges).
echo off
wbadmin start backup -backupTarget:\\hvbackup\hvvms\dc01 -include:N: -vssFull -noVerify -quiet
if %errorlevel% equ -2 echo skipped dc01
if %errorlevel% equ -2 goto quorum
:quorum
wbadmin start backup -backupTarget:\\hvbackup\hvvms\quorum -include:Q: -vssFull -noVerify -quiet
if %errorlevel% equ -2 echo skipped quorum
if %errorlevel% equ -2 goto ts02
:ts02
wbadmin start backup -backupTarget:\\hvbackup\hvvms\ts02 -include:S: -vssFull -noVerify -quiet
if %errorlevel% equ -2 echo skipped ts02
if %errorlevel% equ -2 goto util01
:util01
wbadmin start backup -backupTarget:\\hvbackup\hvvms\util01 -include:P: -vssFull -noVerify -quiet
if %errorlevel% equ -2 echo skipped util01
if %errorlevel% equ -2 goto util02
:util02
wbadmin start backup -backupTarget:\\hvbackup\hvvms\util02 -include:O: -vssFull -noVerify -quiet
if %errorlevel% equ -2 echo skipped util02
exit
What about checking successfully completed the job?
ReplyDeleteyou can create log files.
ReplyDelete