Draft of powershell script to sync information between Veeam Backup and Replication and vcsa
Below you can find the sample of the script, which reads information about done backups from VBR server and writes it into custom attributes of each backed up VM in vcsa (considered that custom attributes are named as “05-last-backup”, “06-vbr-restore-points”, “07-vbr-job-options”; vcsa is named as “vcsa.itforce.local”; VBR is named as “veeambr.itforce.local”)
To pre-create custom attributes for each VM in your vcsa:
connect-viserver vcsa.itforce.local New-CustomAttribute -TargetType "VirtualMachine" -Name "05-last-backup" New-CustomAttribute -TargetType "VirtualMachine" -Name "06-vbr-restore-points" New-CustomAttribute -TargetType "VirtualMachine" -Name "07-vbr-job-options"
The script prerequisites:
- script easier to run directly from veeambr server.
- veeambr server should have network access to vcsa by 443 port