Auto-stop job schedule

PowerShell script exchange

Auto-stop job schedule

Veeam Logoby acatic » Fri 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.
acatic
Novice
 
Posts: 3
Liked: 1 time
Joined: Mon Oct 07, 2013 3:08 pm

Re: Auto-stop job schedule

Veeam Logoby v.Eremin » Mon 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.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 2 guests