What I would like to do is to automate VeeamZIP job execution and get a notification after the job completed. Parameteres (VM name , retention) are passed to the script from a separate form. So I would like to get a usual notification after the VeeamZIP job is completed.
I have created VeemZIP job and it's working fine , however I want to add a command to enable email notification after the backup job is completed. Anybody can guide me to this .
Code: Select all
$vm = Find-VBRViEntity -Name $vmName
$rep = Get-VBRBackupRepository -Name $repo
Start-VBRZip -BackupRepository $rep -Entity $vm -AutoDelete $retention
<need to add command to send an email notification here>
Hasa