PowerShell script exchange
Post Reply
BGilbert
Influencer
Posts: 14
Liked: 3 times
Joined: Jun 20, 2012 10:01 pm
Full Name: Brian Gilbert
Contact:

Scheduled Jobs in a Repository

Post by BGilbert »

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: 14
Liked: 3 times
Joined: Jun 20, 2012 10:01 pm
Full Name: Brian Gilbert
Contact:

Re: Scheduled Jobs in a Repository

Post by BGilbert »

Does Get-VBRJob give information about the repository used by a job?
pizzim13
Enthusiast
Posts: 94
Liked: 6 times
Joined: Apr 21, 2011 7:37 pm
Contact:

Re: Scheduled Jobs in a Repository

Post by pizzim13 » 2 people like this post

Get-VBRBackupRepository | ? {$_.id -eq (get-vbrjob -name "job name").info.TargetRepositoryId.guid}
BGilbert
Influencer
Posts: 14
Liked: 3 times
Joined: Jun 20, 2012 10:01 pm
Full Name: Brian Gilbert
Contact:

Re: Scheduled Jobs in a Repository

Post by BGilbert »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests