I would like to get a list of all my replication jobs and whether they replicate from the VM or from an existing backup (so the stuff behind the Source button in the VM list of the replicatio job properties).
But I just can't seem to find the right property or command to do so.
Anyone can give me a hint? We're using VBR v8.
-
- Novice
- Posts: 5
- Liked: never
- Joined: Mar 17, 2015 10:15 am
- Full Name: Peter Aerts
- Contact:
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Script for listing source of replication jobs
Hi, Peter,
Try the following script:
Thanks.
Try the following script:
Code: Select all
Get-VBRJob | where {$_.Jobtype -eq "Replica"} | Select-Object -property @{N="Name";E={$_.Name}}, @{N="Replicate from Backups";E={$_.options.replicasourceoptions.backup2vi}}
-
- Novice
- Posts: 5
- Liked: never
- Joined: Mar 17, 2015 10:15 am
- Full Name: Peter Aerts
- Contact:
Re: Script for listing source of replication jobs
Yep that was exactly what I was looking for!
I got close, but somehow never noticed ReplicaSourceOptions , or realized that Backup2Vi was the property I needed.
Thanks!
I got close, but somehow never noticed ReplicaSourceOptions , or realized that Backup2Vi was the property I needed.
Thanks!
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Script for listing source of replication jobs
You're welcome. Glad to hear that my input was helpful.
Who is online
Users browsing this forum: No registered users and 20 guests