-
- Novice
- Posts: 6
- Liked: never
- Joined: Dec 26, 2010 1:14 pm
- Full Name: Damien BASTIÉ
- Contact:
Get targetdir ?
Hi,
How can retrieve with powershell the targetdir of each job ?
It is possible ?
Thanks
Damien
How can retrieve with powershell the targetdir of each job ?
It is possible ?
Thanks
Damien
-
- VP, Product Management
- Posts: 27377
- Liked: 2800 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: Get targetdir ?
Hi Damien,
Try using Get-VBRJob | Export-VBRJob PowerShell command, this will export all jobs configurations into XML file.
Thanks.
Try using Get-VBRJob | Export-VBRJob PowerShell command, this will export all jobs configurations into XML file.
Thanks.
-
- Novice
- Posts: 6
- Liked: never
- Joined: Dec 26, 2010 1:14 pm
- Full Name: Damien BASTIÉ
- Contact:
Re: Get targetdir ?
Thanks it work !
But there is an another method in CLI to get Job Name and targetdir ?
Damien
But there is an another method in CLI to get Job Name and targetdir ?
Damien
-
- Veteran
- Posts: 293
- Liked: 19 times
- Joined: Apr 13, 2011 12:45 pm
- Full Name: Thomas McConnell
- Contact:
Re: Get targetdir ?
This one
Code: Select all
$b = Get-VBRBackup | ?{$_.JobName -eq "JobName" }
$b.GetStorages() | Select -First 1 DirPath
-
- Novice
- Posts: 6
- Liked: never
- Joined: Dec 26, 2010 1:14 pm
- Full Name: Damien BASTIÉ
- Contact:
Re: Get targetdir ?
Perfect ! Thanks a lot Thomas !ThomasMc wrote:This one
Code: Select all
$b = Get-VBRBackup | ?{$_.JobName -eq "JobName" } $b.GetStorages() | Select -First 1 DirPath
-
- Veteran
- Posts: 293
- Liked: 19 times
- Joined: Apr 13, 2011 12:45 pm
- Full Name: Thomas McConnell
- Contact:
Re: Get targetdir ?
Your welcome, not where I thought it would have been(I was thinking it would have been in Get-VBRJob somewhere) but works just as good.dbastie wrote: Perfect ! Thanks a lot Thomas !
Also note that I don't think this would work for jobs that have never been run as I don't think it would be able to find a backup file
-
- Veteran
- Posts: 282
- Liked: 26 times
- Joined: Nov 10, 2010 6:51 pm
- Full Name: Seth Bartlett
- Contact:
Re: Get targetdir ?
For one job:
For all jobs:
Code: Select all
$job = Get-VBRJob | ?{$_.name -eq "Job Name"}
$Job.info.targetdir
Code: Select all
Get-VBRJob | %{$_.Info.TargetDir}
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
-
- Veteran
- Posts: 293
- Liked: 19 times
- Joined: Apr 13, 2011 12:45 pm
- Full Name: Thomas McConnell
- Contact:
Re: Get targetdir ?
Nice one, so it was in there
-
- Novice
- Posts: 6
- Liked: never
- Joined: Dec 26, 2010 1:14 pm
- Full Name: Damien BASTIÉ
- Contact:
Re: Get targetdir ?
Thanks Sethbartlett
(Need a full documentation about Veeam's powershell for next releases please )
(Need a full documentation about Veeam's powershell for next releases please )
Who is online
Users browsing this forum: No registered users and 10 guests