Scheduled Jobs in a Repository

PowerShell script exchange

Scheduled Jobs in a Repository

Veeam Logoby BGilbert » Wed Sep 19, 2012 5:43 pm

All,

I'm trying to script a way to find what jobs are scheduled and when will they run for a repository. I plan to use this when I'm creating a new job. I have a script that chooses the repository with the most free space but I want to make sure the schedule for the new job doesn't conflict with existing jobs in the repository.

Thanks, Brian
BGilbert
Influencer
 
Posts: 11
Liked: 3 times
Joined: Wed Jun 20, 2012 10:01 pm
Full Name: Brian Gilbert

Re: Scheduled Jobs in a Repository

Veeam Logoby BGilbert » Wed Sep 19, 2012 9:36 pm

Does Get-VBRJob give information about the repository used by a job?
BGilbert
Influencer
 
Posts: 11
Liked: 3 times
Joined: Wed Jun 20, 2012 10:01 pm
Full Name: Brian Gilbert

Re: Scheduled Jobs in a Repository

Veeam Logoby pizzim13 » Thu Sep 20, 2012 3:45 pm 2 people like this post

Get-VBRBackupRepository | ? {$_.id -eq (get-vbrjob -name "job name").info.TargetRepositoryId.guid}
pizzim13
Enthusiast
 
Posts: 86
Liked: 6 times
Joined: Thu Apr 21, 2011 7:37 pm

Re: Scheduled Jobs in a Repository

Veeam Logoby BGilbert » Thu Sep 20, 2012 4:31 pm

Thank you, Pizzim13!This gives me exactly what I needed! I knew there had to be a way but I'm still trying to get proficient with Powershell and the Veeam cmdlets.
BGilbert
Influencer
 
Posts: 11
Liked: 3 times
Joined: Wed Jun 20, 2012 10:01 pm
Full Name: Brian Gilbert


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 5 guests