PowerShell script exchange
Post Reply
matteu
Veeam Legend
Posts: 823
Liked: 128 times
Joined: May 11, 2018 8:42 am
Contact:

Repository veeam agent

Post by matteu »

Hello

Is it normal to get the destination repository the attribute I have to query depends on the agent mode ?

If agent is on mode ManagedbyAgent : (Get-VBRComputerBackupJob).destinationoptions.backuprepository.name
If agent is on mode ManagedByServer : (Get-VBRComputerBackupJob).backuprepository.name

I just would like to know if this is a normal behavior or not :)
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Repository veeam agent

Post by oleg.feoktistov » 1 person likes this post

Hi matteu,

Yes, it is normal. As you might have noticed, for ManagedByAgent jobs, unlike for ManagedByServer jobs, you can choose destination type (backup repo, local storage etc.). So, it would require a separate step (UI) and a separate property (Powershell) to hold all the destination data. To avoid creating reduntant classes we decided to reflect BackupRepository property as null in ManagedByAgent job objects and DestinationOptions as null in ManagedByServer job objects.

Thanks,
Oleg
matteu
Veeam Legend
Posts: 823
Liked: 128 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Repository veeam agent

Post by matteu »

OK,
Thanks for your answer.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 9 guests