Standalone backup agent for Microsoft Windows servers and workstations (formerly Veeam Endpoint Backup FREE)
Post Reply
jeffshead
Enthusiast
Posts: 71
Liked: 3 times
Joined: May 05, 2016 1:07 pm
Full Name: Jeff
Contact:

Batch file to run & verify backup job

Post by jeffshead »

------------------------------------------------------
Veeam B&R 11
Veeam MS Agent 5
vSphere 7.0u1d (soon to be updated to U2)
------------------------------------------------------

I searched but I haven't found any examples of batch files that can accomplish my goals.

I have a VM with a large independent disc. I want to run a daily backup job via Windows Task Scheduler and a batch file because I also need to perform pre/post job activities. The destination is a USB drive.

The drive will remain unmounted and powered off. The batch file will issue commands to do the following:
  1. Tell the remote IP PDU to power on the outlet that the USB drive is plugged into.
  2. Mount the drive in the Window's VM.
  3. Run the backup.
  4. Unmount the drive.
  5. Power off the outlet.
I know the code to run the backup would be something like this:

Code: Select all

"C:\Program Files\Veeam\Endpoint Backup\Veeam.EndPoint.Manager.exe" /backup "<ID>"
What code would be used to determine if the backup was successful/failed?
Egor Yakovlev
Veeam Software
Posts: 2537
Liked: 683 times
Joined: Jun 14, 2013 9:30 am
Full Name: Egor Yakovlev
Location: Prague, Czech Republic
Contact:

Re: Batch file to run & verify backup job

Post by Egor Yakovlev »

Hi Jeff,

You can check for Windows Event ID 190 on the Agent machine or VBR server(if Managed by Server mode).
It logs Job Finished event with Success\Warning\Failed status and respectful Event severity level(Information\Warning\Error).

/Cheers!
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 23 guests