List out Folders in a backup job

PowerShell script exchange

List out Folders in a backup job

Veeam Logoby jgreenback » Thu Feb 27, 2014 4:07 pm

Is there a way to get a list of folders from a backup job? We add folders to backup jobs using VMs and Templates view.
I've searched through the forums a bit but have yet to find something.

Thanks
jgreenback
Enthusiast
 
Posts: 31
Liked: 11 times
Joined: Thu Sep 19, 2013 9:26 pm
Full Name: Jason Greenback

Re: List out Folders in a backup job

Veeam Logoby tsightler » Thu Feb 27, 2014 4:21 pm 1 person likes this post

If you just want the name/path of objects in the jobs something like this should work:

Code: Select all
((Get-VBRJob -Name "<Name_of_Job>").GetObjectsinJob() | ? {$_.Role -eq "EInclude"}).Location
tsightler
Veeam Software
 
Posts: 4768
Liked: 1737 times
Joined: Fri Jun 05, 2009 12:57 pm
Full Name: Tom Sightler

Re: List out Folders in a backup job

Veeam Logoby jgreenback » Thu Feb 27, 2014 4:55 pm

Perfect!!! Thanks for the help.
jgreenback
Enthusiast
 
Posts: 31
Liked: 11 times
Joined: Thu Sep 19, 2013 9:26 pm
Full Name: Jason Greenback


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 5 guests