Skip to content

Commit

Permalink
Merge pull request #39 from rebelinux/dev
Browse files Browse the repository at this point in the history
v0.6.9
  • Loading branch information
rebelinux authored Oct 11, 2024
2 parents 634ca1e + 5ed6cb4 commit 0aa93d2
Show file tree
Hide file tree
Showing 26 changed files with 96 additions and 113 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ jobs:

# Upload the SARIF file generated in the previous step
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.6.9] - 2024-10-10

### Added

- Add DependaBot action

### Fixed

- Fix a issue on error handling

## [0.6.8] - 2024-09-22

### Added
Expand Down
4 changes: 2 additions & 2 deletions Src/Private/Get-DiagBackupServer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-DiagBackupServer {
.DESCRIPTION
Build a diagram of the configuration of Veeam VBR in PDF/PNG/SVG formats using Psgraph.
.NOTES
Version: 0.6.8
Version: 0.6.9
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand Down Expand Up @@ -135,7 +135,7 @@ function Get-DiagBackupServer {
}
}
} catch {
$_
Write-Verbose $_.Exception.Message
}
}
end {}
Expand Down
17 changes: 3 additions & 14 deletions Src/Private/Get-DiagBackupToFileProxy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-DiagBackupToFileProxy {
.DESCRIPTION
Build a diagram of the configuration of Veeam VBR in PDF/PNG/SVG formats using Psgraph.
.NOTES
Version: 0.6.8
Version: 0.6.9
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand All @@ -29,26 +29,15 @@ function Get-DiagBackupToFileProxy {
$FileBackupProxy = Get-VbrBackupProxyInfo -Type 'nas'
if ($BackupServerInfo) {
if ($FileBackupProxy) {
$ProxiesAttr = @{
Label = 'File Backup Proxies'
fontsize = 18
penwidth = 1.5
labelloc = 'b'
color = $SubGraphDebug.color
style = 'dashed,rounded'
}
SubGraph MainSubGraph -Attributes $ProxiesAttr -ScriptBlock {

Node FileProxies @{Label = (Get-DiaHTMLNodeTable -ImagesObj $Images -inputObject ($FileBackupProxy | ForEach-Object { $_.Name.split('.')[0] }) -Align "Center" -iconType "VBR_Proxy_Server" -columnSize 4 -IconDebug $IconDebug -MultiIcon -AditionalInfo ($FileBackupProxy.AditionalInfo )); shape = 'plain'; fontsize = 14; fontname = "Segoe Ui" }

}
Node FileProxies @{Label = (Get-DiaHTMLNodeTable -ImagesObj $Images -inputObject ($FileBackupProxy | ForEach-Object { $_.Name.split('.')[0] }) -Align "Center" -iconType "VBR_Proxy_Server" -columnSize 4 -IconDebug $IconDebug -MultiIcon -AditionalInfo $FileBackupProxy.AditionalInfo -Subgraph -SubgraphIconType "VBR_Proxy" -SubgraphLabel "File Backup Proxies" -SubgraphLabelPos "top" -SubgraphTableStyle "dashed,rounded" -fontColor $Fontcolor -TableBorderColor $Edgecolor -TableBorder "1"); shape = 'plain'; fontsize = 14; fontname = "Segoe Ui" }

Edge $BackupServerInfo.Name -To FileProxies @{minlen = 3 }

}
}
} catch {
$_
Write-Verbose $_.Exception.Message
}
}
end {}
Expand Down
16 changes: 3 additions & 13 deletions Src/Private/Get-DiagBackupToHvProxy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-DiagBackupToHvProxy {
.DESCRIPTION
Build a diagram of the configuration of Veeam VBR in PDF/PNG/SVG formats using Psgraph.
.NOTES
Version: 0.6.8
Version: 0.6.9
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand All @@ -28,25 +28,15 @@ function Get-DiagBackupToHvProxy {
try {
$HyperVBackupProxy = Get-VbrBackupProxyInfo -Type 'hyperv'
if ($HyperVBackupProxy) {
$ProxiesAttr = @{
Label = 'Hyper-V Backup Proxies'
fontsize = 18
penwidth = 1.5
labelloc = 'b'
color = $SubGraphDebug.color
style = 'dashed,rounded'
}
SubGraph MainSubGraph -Attributes $ProxiesAttr -ScriptBlock {

Node HvProxies @{Label = (Get-DiaHTMLNodeTable -ImagesObj $Images -inputObject ($HyperVBackupProxy | ForEach-Object { $_.Name.split('.')[0] }) -Align "Center" -iconType "VBR_Proxy_Server" -columnSize 4 -IconDebug $IconDebug -MultiIcon -AditionalInfo ($HyperVBackupProxy.AditionalInfo )); shape = 'plain'; fontsize = 14; fontname = "Segoe Ui" }
Node HvProxies @{Label = (Get-DiaHTMLNodeTable -ImagesObj $Images -inputObject ($HyperVBackupProxy | ForEach-Object { $_.Name.split('.')[0] }) -Align "Center" -iconType "VBR_Proxy_Server" -columnSize 4 -IconDebug $IconDebug -MultiIcon -AditionalInfo $HyperVBackupProxy.AditionalInfo -Subgraph -SubgraphIconType "VBR_Proxy" -SubgraphLabel "Hyper-V Backup Proxies" -SubgraphLabelPos "top" -SubgraphTableStyle "dashed,rounded" -fontColor $Fontcolor -TableBorderColor $Edgecolor -TableBorder "1"); shape = 'plain'; fontsize = 14; fontname = "Segoe Ui" }

}

Edge $BackupServerInfo.Name -To HvProxies @{minlen = 3 }

}
} catch {
$_
Write-Verbose $_.Exception.Message
}
}
end {}
Expand Down
6 changes: 3 additions & 3 deletions Src/Private/Get-DiagBackupToProtectedGroup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-DiagBackupToProtectedGroup {
.DESCRIPTION
Build a diagram of the configuration of Veeam VBR in PDF/PNG/SVG formats using Psgraph.
.NOTES
Version: 0.6.8
Version: 0.6.9
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand Down Expand Up @@ -55,7 +55,7 @@ function Get-DiagBackupToProtectedGroup {
}
}
} catch {
$_
Write-Verbose $_.Exception.Message
}

if ($ProtectedGroups.Container) {
Expand Down Expand Up @@ -343,7 +343,7 @@ function Get-DiagBackupToProtectedGroup {
}
}
} catch {
$_
Write-Verbose $_.Exception.Message
}
}
end {}
Expand Down
4 changes: 2 additions & 2 deletions Src/Private/Get-DiagBackupToRepo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-DiagBackupToRepo {
.DESCRIPTION
Build a diagram of the configuration of Veeam VBR in PDF/PNG/SVG formats using Psgraph.
.NOTES
Version: 0.6.8
Version: 0.6.9
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand Down Expand Up @@ -83,7 +83,7 @@ function Get-DiagBackupToRepo {
}
}
} catch {
$_
Write-Verbose $_.Exception.Message
}
}
end {}
Expand Down
4 changes: 2 additions & 2 deletions Src/Private/Get-DiagBackupToSobr.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-DiagBackupToSobr {
.DESCRIPTION
Build a diagram of the configuration of Veeam VBR in PDF/PNG/SVG formats using Psgraph.
.NOTES
Version: 0.6.8
Version: 0.6.9
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand Down Expand Up @@ -71,7 +71,7 @@ function Get-DiagBackupToSobr {
}
}
} catch {
$_
Write-Verbose $_.Exception.Message
}
}
end {}
Expand Down
4 changes: 2 additions & 2 deletions Src/Private/Get-DiagBackupToTape.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-DiagBackupToTape {
.DESCRIPTION
Build a diagram of the configuration of Veeam VBR in PDF/PNG/SVG formats using Psgraph.
.NOTES
Version: 0.6.8
Version: 0.6.9
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand Down Expand Up @@ -72,7 +72,7 @@ function Get-DiagBackupToTape {
}
}
} catch {
$_
Write-Verbose $_.Exception.Message
}
}
end {}
Expand Down
16 changes: 3 additions & 13 deletions Src/Private/Get-DiagBackupToViProxy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-DiagBackupToViProxy {
.DESCRIPTION
Build a diagram of the configuration of Veeam VBR in PDF/PNG/SVG formats using Psgraph.
.NOTES
Version: 0.6.8
Version: 0.6.9
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand All @@ -29,19 +29,9 @@ function Get-DiagBackupToViProxy {
$VMwareBackupProxy = Get-VbrBackupProxyInfo -Type 'vmware'
if ($BackupServerInfo) {
if ($VMwareBackupProxy) {
$ProxiesAttr = @{
Label = 'VMware Backup Proxies'
fontsize = 18
penwidth = 1.5
labelloc = 'b'
color = $SubGraphDebug.color
style = 'dashed,rounded'
}
SubGraph MainSubGraph -Attributes $ProxiesAttr -ScriptBlock {

Node ViProxies @{Label = (Get-DiaHTMLNodeTable -ImagesObj $Images -inputObject ($VMwareBackupProxy | ForEach-Object { $_.Name.split('.')[0] }) -Align "Center" -iconType "VBR_Proxy_Server" -columnSize 4 -IconDebug $IconDebug -MultiIcon -AditionalInfo ($VMwareBackupProxy.AditionalInfo )); shape = 'plain'; fontsize = 14; fontname = "Segoe Ui" }
Node ViProxies @{Label = (Get-DiaHTMLNodeTable -ImagesObj $Images -inputObject ($VMwareBackupProxy | ForEach-Object { $_.Name.split('.')[0] }) -Align "Center" -iconType "VBR_Proxy_Server" -columnSize 4 -IconDebug $IconDebug -MultiIcon -AditionalInfo $VMwareBackupProxy.AditionalInfo -Subgraph -SubgraphIconType "VBR_Proxy" -SubgraphLabel "VMware Backup Proxies" -SubgraphLabelPos "top" -SubgraphTableStyle "dashed,rounded" -fontColor $Fontcolor -TableBorderColor $Edgecolor -TableBorder "1"); shape = 'plain'; fontsize = 14; fontname = "Segoe Ui" }

}

Edge $BackupServerInfo.Name -To ViProxies:n @{minlen = 3 }

Expand Down Expand Up @@ -165,7 +155,7 @@ function Get-DiagBackupToViProxy {
}
}
} catch {
$_
Write-Verbose $_.Exception.Message
}
}
end {}
Expand Down
17 changes: 3 additions & 14 deletions Src/Private/Get-DiagBackupToWanAccel.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-DiagBackupToWanAccel {
.DESCRIPTION
Build a diagram of the configuration of Veeam VBR in PDF/PNG/SVG formats using Psgraph.
.NOTES
Version: 0.6.8
Version: 0.6.9
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand All @@ -31,26 +31,15 @@ function Get-DiagBackupToWanAccel {

if ($BackupServerInfo) {
if ($WanAccel) {
$WANAccelAttr = @{
Label = 'Wan Accelerators'
fontsize = 18
penwidth = 1.5
labelloc = 'b'
color = $SubGraphDebug.color
style = 'dashed,rounded'
}
SubGraph MainSubGraph -Attributes $WANAccelAttr -ScriptBlock {

Node WanAccelServer @{Label = (Get-DiaHTMLNodeTable -ImagesObj $Images -inputObject ($WanAccel | ForEach-Object { $_.Name.split('.')[0] }) -Align "Center" -iconType "VBR_Wan_Accel" -columnSize 4 -IconDebug $IconDebug -MultiIcon -AditionalInfo ($WanAccel.AditionalInfo )); shape = 'plain'; fontsize = 14; fontname = "Segoe Ui" }

}
Node WanAccelServer @{Label = (Get-DiaHTMLNodeTable -ImagesObj $Images -inputObject ($WanAccel | ForEach-Object { $_.Name.split('.')[0] }) -Align "Center" -iconType "VBR_Wan_Accel" -columnSize 4 -IconDebug $IconDebug -MultiIcon -AditionalInfo ($WanAccel.AditionalInfo ) -Subgraph -SubgraphIconType "VBR_Wan_Accel" -SubgraphLabel "Wan Accelerators" -SubgraphLabelPos "top" -SubgraphTableStyle "dashed,rounded" -fontColor $Fontcolor -TableBorderColor $Edgecolor -TableBorder "1"); shape = 'plain'; fontsize = 14; fontname = "Segoe Ui" }

Edge $BackupServerInfo.Name -To WanAccelServer @{minlen = 3; xlabel = ($WanAccel.AditionalInfo.TrafficPort[0]) }

}
}
} catch {
$_
Write-Verbose $_.Exception.Message
}
}
end {}
Expand Down
4 changes: 2 additions & 2 deletions Src/Private/Get-VbrBackupArchObjRepoInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-VbrBackupArchObjRepoInfo {
.DESCRIPTION
Build a diagram of the configuration of Veeam VBR in PDF/PNG/SVG formats using Psgraph.
.NOTES
Version: 0.6.2
Version: 0.6.9
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand Down Expand Up @@ -73,7 +73,7 @@ function Get-VbrBackupArchObjRepoInfo {

return $ArchObjStorageInfo
} catch {
$_
Write-Verbose $_.Exception.Message
}
}
end {}
Expand Down
4 changes: 2 additions & 2 deletions Src/Private/Get-VbrBackupObjectRepoInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-VbrBackupObjectRepoInfo {
.DESCRIPTION
Build a diagram of the configuration of Veeam VBR in PDF/PNG/SVG formats using Psgraph.
.NOTES
Version: 0.6.2
Version: 0.6.9
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand Down Expand Up @@ -70,7 +70,7 @@ function Get-VbrBackupObjectRepoInfo {

return $ObjStorageInfo
} catch {
$_
Write-Verbose $_.Exception.Message
}
}
end {}
Expand Down
4 changes: 2 additions & 2 deletions Src/Private/Get-VbrBackupProtectedGroupInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-VbrBackupProtectedGroupInfo {
.DESCRIPTION
Build a diagram of the configuration of Veeam VBR in PDF/PNG/SVG formats using Psgraph.
.NOTES
Version: 0.6.2
Version: 0.6.9
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand Down Expand Up @@ -52,7 +52,7 @@ function Get-VbrBackupProtectedGroupInfo {

return $ProtectedGroupInfo
} catch {
$_
Write-Verbose $_.Exception.Message
}
}
end {}
Expand Down
4 changes: 2 additions & 2 deletions Src/Private/Get-VbrBackupProxyInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-VbrBackupProxyInfo {
.DESCRIPTION
Build a diagram of the configuration of Veeam VBR in PDF/PNG/SVG formats using Psgraph.
.NOTES
Version: 0.6.2
Version: 0.6.9
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand Down Expand Up @@ -104,7 +104,7 @@ function Get-VbrBackupProxyInfo {

return $BackupProxyInfo
} catch {
$_
Write-Verbose $_.Exception.Message
}
}
end {}
Expand Down
4 changes: 2 additions & 2 deletions Src/Private/Get-VbrBackupRepoInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-VbrBackupRepoInfo {
.DESCRIPTION
Build a diagram of the configuration of Veeam VBR in PDF/PNG/SVG formats using Psgraph.
.NOTES
Version: 0.6.5
Version: 0.6.9
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand Down Expand Up @@ -77,7 +77,7 @@ function Get-VbrBackupRepoInfo {

return $BackupRepoInfo
} catch {
$_
Write-Verbose $_.Exception.Message
}
}
end {}
Expand Down
Loading

0 comments on commit 0aa93d2

Please sign in to comment.