PowerShell script exchange
Post Reply
ratkinsonuk
Expert
Posts: 111
Liked: 16 times
Joined: Dec 10, 2018 10:59 am
Full Name: Robert Atkinson
Contact:

Accessing 'Secondary Job' Information

Post by ratkinsonuk »

Am I correct in thinking, the only way to get the Copy job information in the primary backup is to scan through all of the Copy jobs. There's no method or property that holds the info within the primary job?

Cheers, Rob.
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Accessing 'Secondary Job' Information

Post by oleg.feoktistov »

You can get this info, just not with the methods CBackupJob class instance has. You have to go to the static ones:

Code: Select all

$job = Get-VBRJob -Name 'Backup Job 1'
$secondaryJobs = [Veeam.Backup.Core.CBackupJob]::GetSecondDestinationJobs($job.Id)
$secondaryJobs
Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests