I use Veeam agent Free Edition v. 3.0.2 combined with Veeam B&R 9.5 Up.4 (this one Licensed), so I can't upgrade to last 4.0 version, because requested V.BR v.10 with License.
I create a Single job on each Laptop by GUI configuration to Veeam repository, and now I want to launch this one by BATCH FILE, that made the backup and after shudown the Pc gracefully.
With this UNIQUE command I launch the backup, but I don't understand how can I control the backupjob state at the end of the backup.
Googling i find info about errorlevel function and Veeam Job state, but I don't know how configure it ERRORLEVEL command.
Here the sample batch the I want to use ...
Thanks for help.
Code: Select all
ECHO *** Begin Veeam Agent Backup Job *****
"C:\Program Files\Veeam\Endpoint Backup\Veeam.EndPoint.Manager.exe" /backup
IF %ERRORLEVEL% 0 GOTO BACKUP_OK
IF %ERRORLEVEL% -1 GOTO BACKUP_ERROR
IF %ERRORLEVEL% 5 GOTO BACKUP_ALREADY_STARTED
:BACKUP_OK
echo **** Backup Effettuato Correttamente ****
GOTO END
:BACKUP_ERROR
echo **** Il Backup ha Riscontrato dei problemi Bloccanti, Invio Email al SysAdmin ****
GOTO END
:BACKUP_ALREADY_STARTED
echo **** Il Backup non è avviabile in quanto è già attivo un altro Jobs di Backup ****
GOTO END
:END