I'm looking to create a script that will generate and possible cross-check Backup Jobs in Veeam with their linked Backup to Tape jobs, in an effort to ensure there aren't any missed backups just expiring off disk.
Any direction with using get-vbrtapejob and get-vbrjob to generate lists to get me started would be appreciated
Thanks!
-
- Novice
- Posts: 3
- Liked: never
- Joined: May 08, 2014 7:42 pm
- Contact:
-
- Product Manager
- Posts: 20284
- Liked: 2258 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Scripting a report to match Backup Jobs to B2T jobs
A quick question before we proceed to actual scripting - what is added as a source for a backup to tape job? Repository or individual backup/backup copy jobs? Thanks.
-
- Novice
- Posts: 3
- Liked: never
- Joined: May 08, 2014 7:42 pm
- Contact:
Re: Scripting a report to match Backup Jobs to B2T jobs
All the Backup to Tape jobs use the Backup Jobs as sources - we don't have any just monitoring the repositories.
-
- Product Manager
- Posts: 20284
- Liked: 2258 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Scripting a report to match Backup Jobs to B2T jobs
Try the following example and see whether it answers your requirements:
Thanks.
Code: Select all
asnp VeeamPSSnapin
$Objects = (Get-VBRTapeJob | ? {$_.Type -eq "BackupToTape"}).Object.name
$JobNames = (Get-VBRJob | where {$_.JobType -eq "Backup"}).name
$JobNames | ?{$Objects -notcontains $_}
Who is online
Users browsing this forum: No registered users and 14 guests