Files
windows-scripts/VeeamBR-VeeamZIP/VeeamZIP-HyperVHost-01-LinuxVMs.ps1
2023-12-05 19:39:38 -06:00

44 lines
1.5 KiB
PowerShell
Executable File

##################################################################
# User Defined Variables
##################################################################
# Names of VMs to backup separated by comma (Mandatory). For instance, $VMNames = “VM1”,”VM2”
$VMNames = "HPV-01-DockerServer-01", "HPV-01-PiHoleServer-01", "HPV-01-ZabbixServer"
# Name of vCenter or standalone host VMs to backup reside on (Mandatory)
$HostName = "HyperVHost-01.ad.akanealw.com"
# Directory that VM backups should go to (Mandatory; for instance, C:\Backup)
$Directory = "\\hypervhost-01\veeamzipbackups"
# Desired compression level (Optional; Possible values: 0 - None, 4 - Dedupe-friendly, 5 - Optimal, 6 - High, 9 - Extreme)
$CompressionLevel = "5"
##################################################################
# End User Defined Variables
##################################################################
Start-Sleep -Seconds 300
$Server = Get-VBRServer -name $HostName
$VM = Find-VBRHvEntity -Name HPV-01-DockerServer-01 -Server $Server
Start-VBRZip -Entity $VM -Folder $Directory -Compression $CompressionLevel
Start-Sleep -Seconds 300
$Server = Get-VBRServer -name $HostName
$VM = Find-VBRHvEntity -Name HPV-01-PiHoleServer-01 -Server $Server
Start-VBRZip -Entity $VM -Folder $Directory -Compression $CompressionLevel
Start-Sleep -Seconds 300
$Server = Get-VBRServer -name $HostName
$VM = Find-VBRHvEntity -Name HPV-01-ZabbixServer -Server $Server
Start-VBRZip -Entity $VM -Folder $Directory -Compression $CompressionLevel