Skip to content

Commit

Permalink
Handle offline repos
Browse files Browse the repository at this point in the history
  • Loading branch information
vMarkusK committed Mar 8, 2023
1 parent 8890345 commit 03af452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Veeam/PRTG-VeeamBRStats-v3.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ If ($reportMode -eq "Monthly") {
#endregion

#region: Collect and filter Repos
[Array]$AllRepos = Get-VBRBackupRepository | Where-Object {$_.Type -notmatch "SanSnapshotOnly"} # Get all Repositories Except SAN
[Array]$AllRepos = Get-VBRBackupRepository | Where-Object {$_.Type -notmatch "SanSnapshotOnly" -and $_.IsUnavailable -eq $False} # Get all Repositories Except SAN
[Array]$CloudRepos = $AllRepos | Where-Object {$_.Type -match "Cloud"} # Get all Cloud Repositories
[Array]$repoList = $AllRepos | Where-Object {$_.Type -notmatch "Cloud"} # Get all Repositories Except SAN and Cloud
<#
Expand Down

0 comments on commit 03af452

Please sign in to comment.