Hello,
I would like to be able to extract, with powershell, the repository a backup job uses, but till now unsuccessfully.
I wonder if is it possible and how?
Thanks and regards
Dario
-
- Enthusiast
- Posts: 31
- Liked: 2 times
- Joined: Nov 11, 2013 7:22 am
- Full Name: Dario Palmisano
- Contact:
-
- Product Manager
- Posts: 20389
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: How to get the repository a bk job uses
Hi, Dario,
Try the following example:
Thanks.
Try the following example:
Code: Select all
$Job = Get-VBRJob -name "Name of your Backup Job"
Get-VBRBackupRepository | where {$_.id -eq $Job.Info.TargetRepositoryId} | select name
-
- Enthusiast
- Posts: 31
- Liked: 2 times
- Joined: Nov 11, 2013 7:22 am
- Full Name: Dario Palmisano
- Contact:
Re: How to get the repository a bk job uses
It works great!
Thanks
Thanks
-
- Product Manager
- Posts: 20389
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: How to get the repository a bk job uses
You're welcome. Should other help be needed, don't hesitate to let us know.
Who is online
Users browsing this forum: Google [Bot] and 16 guests