For our backup reporting, we are trying to link the backup files to their host/server location.
The following logic is used to get the server/host information.
Code: Select all
# Sample code
$backup = Get-VBRBackup -Name "Backup Job Name"
$backupStorages = $backup.GetAllStorages()
foreach ( $s in $backupStorages)
{
# Get the host id for the backup file, and look out for the server
Get-VBRServer | ? {$_.Id -eq $s[0].HostId}
}
However, for backup jobs that use "Scale-Out" Repository, the "HostId" returned is same as the Veeam Backup Server.
Is this expected ? I was expecting the "HostId" to point to one of the Extents (of Scale-Out Repository).
Any other API to get the Host information (like Host name, Unique Id,etc) where the backup file is stored (in case of backup repository and scale-out repository)?
Any help is appreciated!
Regards,
Sindhuja