PowerShell script exchange
Post Reply
buhrova
Novice
Posts: 9
Liked: 3 times
Joined: Dec 07, 2022 9:21 am
Full Name: Barbora Uhrova
Contact:

VBRv12 - PS reporting

Post by buhrova » 1 person likes this post

Hello guys,
some of our customers have VBRv12 installed on their site so we need regularly check their reports, the best solution for us is use PS reporting from here: https://gist.github.com/smasterson/9136468, this report contains summary of every jobs in VBR so for us it's better than x reports with only one job in report.

I noticed we don't get reports with backup copy jobs when "mirroring" is enabled in backup copy job but everything in PS script is set on TRUE (we got a report only with backup jobs or retention jobs, backup copy jobs table is clear). When I set type of backup copy job on "pruning", everything is alright.

I don't have much experiences with PS programming so my chance to edit or troubleshoot something in the report is zero. Also, I don't want to create new backup copy jobs with pruning type because of reporting.

Has anyone the same expirience with this? Or use another similar script?

I would be glad for any advices. :)
Orven
Service Provider
Posts: 2
Liked: 2 times
Joined: Aug 27, 2013 12:29 pm
Full Name: Olaf Reitz
Contact:

Re: VBRv12 - PS reporting

Post by Orven » 2 people like this post

Perfect time to learn some powershell :).

Backup Copy Jobs come in two different flavors/JobTypes:
- Immediate Copy (mirroring) -> SimpleBackupCopyPolicy
- Periodic copy (pruning) -> BackupSync

Your linked script only gathers BackupSync for the Backup Copy Jobs. Didn't test but maybe it is enough to switch BackupSync to SimpleBackupCopyPolicy (e.g. Line 602, etc.) in the script to get the result you are looking for.
buhrova
Novice
Posts: 9
Liked: 3 times
Joined: Dec 07, 2022 9:21 am
Full Name: Barbora Uhrova
Contact:

Re: VBRv12 - PS reporting

Post by buhrova » 1 person likes this post

Hello again,
thank you so much for this advice! You helped me save time configuring a new script :)
Now I can see my "pruning" Backup Copy Jobs.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests