I am working on backup reporting, when notice that Backup Storage "Id" does not uniquely identify the storage file!
Usecase:
Using Powershell Cmdlets, retrieve past 5 days of backups and their related storage information on 9-Apr-2018 and 10-Apr-2018 subsequently.
Expected Result:
Powershell Cmdlets should return exactly the same information (backup storage id, file path , creation time) for the overlapped 4 days.
Actual Result:
Same Backup Storage Id has different CreationTime and FilePath on 9-Apr-2018 and 10-Apr-2018.
Code: Select all
# Get backups of a job
$backup = Get-VBRBackup | ? {$_.JobId -eq 'a939cf44-f13d-49b9-b0b0-5c776d2661ad'}
# Get backup storage details from the backup. Here, I am just filtering on the backup storage id which has the issue.
# In the actual code, the filtering happens based on the CreationTime.
$backup.GetAllStorages() | ? {($_.Id -eq 'f5900c66-0c08-42b3-9812-9a10035a73ce') -or ($_.Id -eq '84ac452d-e940-4d87-bf8c-0fadab600494')}
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# When the above code is executed on 9-Apr-2018, below result is obtained.
Info : Veeam.Backup.Model.CStorageInfo
Id : 84ac452d-e940-4d87-bf8c-0fadab600494
FilePath : \\nas01.corp\Veeam_Agent_Backups\VeeamAgentUserfec31b42-5380-6a44-6975-6af42d5cf257\dc02 Agent Backup Policy 2 - dc02\dc02
Agent Backup Policy 2_2018-04-07T000009.vib
BackupId : 124b464f-4b0e-4478-8ae6-7194a64eaef0
CreationTime : 4/7/2018 12:00:09 AM
IsAvailable : True
HasVbk : False
.....
Info : Veeam.Backup.Model.CStorageInfo
Id : f5900c66-0c08-42b3-9812-9a10035a73ce
FilePath : \\nas01.corp\Veeam_Agent_Backups\VeeamAgentUserfec31b42-5380-6a44-6975-6af42d5cf257\dc02 Agent Backup Policy 2 - dc02\dc02
Agent Backup Policy 2_2018-04-06T060009.vbk
BackupId : 124b464f-4b0e-4478-8ae6-7194a64eaef0
CreationTime : 4/6/2018 6:00:09 AM
IsAvailable : True
HasVbk : True
.....
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# When the same code is executed on 10-Apr-2018, below result is obtained (only one item is found, with a different CreationTime and FilePath)
Info : Veeam.Backup.Model.CStorageInfo
Id : f5900c66-0c08-42b3-9812-9a10035a73ce
FilePath : \\nas01.corp\Veeam_Agent_Backups\VeeamAgentUserfec31b42-5380-6a44-6975-6af42d5cf257\dc02 Agent Backup Policy 2 - dc02\dc02
Agent Backup Policy 2_2018-04-07T000009.vbk
BackupId : 124b464f-4b0e-4478-8ae6-7194a64eaef0
CreationTime : 4/7/2018 12:00:09 AM
IsAvailable : True
HasVbk : True
...
Questions:
Isn't 'Id' used to uniquely identify the backup storage file?
Is this a known issue?
So far, I see this issue for a job with the job type as "Linux Agent Policy" in VBR 9.5 Console.
Any help regarding this is greatly appreciated.
Regards,
Sindhuja