PowerShell script exchange
Post Reply
acatic
Influencer
Posts: 15
Liked: 1 time
Joined: Oct 07, 2013 3:08 pm
Contact:

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.

veremin
Product Manager
Posts: 16710
Liked: 1396 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

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
Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest