PowerShell script exchange
Post Reply
acatic
Enthusiast
Posts: 39
Liked: 3 times
Joined: Oct 07, 2013 3:08 pm
Contact:

Auto-stop job schedule

Post by acatic »

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: 20271
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Auto-stop job schedule

Post by veremin »

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 11 guests