PowerShell script exchange
Post Reply
Posts: 21
Liked: 2 times
Joined: Oct 07, 2013 3:08 pm

Auto-stop job schedule

Post by acatic » Aug 29, 2014 3:35 pm

Is it possible to get PS to set a job to run from beginning of month to end of month only?

I was thinking to set a job to dump to one folder this month, another folder next month. (Actually, it would be multiple jobs in that case; for one server, I'd schedule one job per month.) That would go into my backup strategy of having properly named archive folders that I could turn to as needed, and further back up. In my scenario, I'd then be able to back up the August folder to the August tape, without worrying that data from the prior or following months is in there, and without relying on manual intervention at monthend.

Thanks much for all wisdom.

Product Manager
Posts: 17633
Liked: 1594 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Auto-stop job schedule

Post by veremin » Sep 01, 2014 9:33 am

You can disable all jobs and make script (scheduled via Windows Scheduler) enable corresponding job in the beginning of the month and disable it in the end of the month:

Code: Select all

Disable-VBRJob -Job $Job

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests