-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from AsBuiltReport/dev
v0.5.4 public release
- Loading branch information
Showing
21 changed files
with
1,414 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,7 @@ | |
"Tape": 1, | ||
"Surebackup": 1, | ||
"Agent": 1, | ||
"FileShare": 1, | ||
"Replication": 1 | ||
} | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
|
||
function Get-AbrVbrFileShareBackupjob { | ||
<# | ||
.SYNOPSIS | ||
Used by As Built Report to returns file share jobs created in Veeam Backup & Replication. | ||
.DESCRIPTION | ||
Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. | ||
.NOTES | ||
Version: 0.5.4 | ||
Author: Jonathan Colon | ||
Twitter: @jcolonfzenpr | ||
Github: rebelinux | ||
Credits: Iain Brighton (@iainbrighton) - PScribo module | ||
.LINK | ||
https://github.com/AsBuiltReport/AsBuiltReport.Veeam.VBR | ||
#> | ||
[CmdletBinding()] | ||
param ( | ||
|
||
) | ||
|
||
begin { | ||
Write-PscriboMessage "Discovering Veeam VBR File Share Backup jobs information from $System." | ||
} | ||
|
||
process { | ||
try { | ||
$FSBkjobs = Get-VBRJob -WarningAction SilentlyContinue | Where-Object {$_.TypeToString -like 'File Backup'} | ||
if ($FSBkjobs.count -gt 0) { | ||
Section -Style Heading3 'File Share Backup Jobs' { | ||
Paragraph "The following section list file share backup jobs created in Veeam Backup & Replication." | ||
BlankLine | ||
$OutObj = @() | ||
foreach ($FSBkjob in $FSBkjobs) { | ||
try { | ||
Write-PscriboMessage "Discovered $($FSBkjob.Name) file share." | ||
$inObj = [ordered] @{ | ||
'Name' = $FSBkjob.Name | ||
'Type' = $FSBkjob.TypeToString | ||
'Status' = Switch ($FSBkjob.IsScheduleEnabled) { | ||
'False' {'Disabled'} | ||
'True' {'Enabled'} | ||
} | ||
'Latest Result' = $FSBkjob.info.LatestStatus | ||
'Last Run' = Switch ($FSBkjob.FindLastSession()) { | ||
$Null {'Unknown'} | ||
default {$FSBkjob.FindLastSession().EndTimeUTC} | ||
} | ||
} | ||
$OutObj += [pscustomobject]$inobj | ||
} | ||
catch { | ||
Write-PscriboMessage -IsWarning $_.Exception.Message | ||
} | ||
} | ||
|
||
$TableParams = @{ | ||
Name = "File Share Backup Jobs - $VeeamBackupServer" | ||
List = $false | ||
ColumnWidths = 25, 20, 15, 15, 25 | ||
} | ||
if ($Report.ShowTableCaptions) { | ||
$TableParams['Caption'] = "- $($TableParams.Name)" | ||
} | ||
$OutObj | Sort-Object -Property 'Name' |Table @TableParams | ||
} | ||
} | ||
} | ||
catch { | ||
Write-PscriboMessage -IsWarning $_.Exception.Message | ||
} | ||
} | ||
end {} | ||
|
||
} |
Oops, something went wrong.