44 lines
1.5 KiB
PowerShell
Executable File
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-02-DockerServer-02", "HPV-02-PiHoleServer-02", "HPV-02-ProxyServer"
|
|
|
|
# Name of vCenter or standalone host VMs to backup reside on (Mandatory)
|
|
$HostName = "HyperVHost-02.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-02-DockerServer-02 -Server $Server
|
|
|
|
Start-VBRZip -Entity $VM -Folder $Directory -Compression $CompressionLevel
|
|
|
|
Start-Sleep -Seconds 300
|
|
|
|
$Server = Get-VBRServer -name $HostName
|
|
|
|
$VM = Find-VBRHvEntity -Name HPV-02-PiHoleServer-02 -Server $Server
|
|
|
|
Start-VBRZip -Entity $VM -Folder $Directory -Compression $CompressionLevel
|
|
|
|
Start-Sleep -Seconds 300
|
|
|
|
$Server = Get-VBRServer -name $HostName
|
|
|
|
$VM = Find-VBRHvEntity -Name HPV-02-ProxyServer -Server $Server
|
|
|
|
Start-VBRZip -Entity $VM -Folder $Directory -Compression $CompressionLevel
|