Veeam PS gallery: last backup


Today, together with my imaginary friend (as my *real *friend Antonio calls him), we created a script that analyzes the backup history on the VBR server and generates an alert if the last successful backup is older than X hours.

First of all, this is not my preferred approach, because custom scripts should be avoided when possible, especially when you are using them for a kind of “automated alert generation”. Why? I have many reasons for it: in example when you perform upgrades (i.e. on the VBR Server) they could silently stop working. Ok you can update/rewrite them but it’s a matter of remembering about them. Much better to use of Veeam ONE and other monitoring tools. And use the correct approach of monitoring SLAs with report like V1’s Protected VMs.

Anyway, if you don’t have Veeam ONE, or you customer wants exactly this alert… the following script can be useful to get notified if, for any reason, VBR isn’t successfully doing its job.

You can download it here -> https://github.com/tinto1970/VeeamPSCollection-LastBackup

It prints outputs like

and reports like