Jump to content

task scheduler - exclude dates


Recommended Posts

Guest Jeremy Schubert
Posted

I have a backup script that I'm gooing to run through task scheduler. I can

use TS to run the Mon backup script every Monday and the Tuesday....etc.

But I also have another task that runs a seperate backup at the end of each

month. So, can I easily program the Monday task, for example, to run all

Mondays except a specific Monday that turns out to be the last day of the

month? Or am I going to have to spend a little cash?

Thanks,

Jeremy

  • Replies 1
  • Created
  • Last Reply
Guest Pegasus \(MVP\)
Posted

Re: task scheduler - exclude dates

 

 

"Jeremy Schubert" <jscc@nospam.hotmail.com> wrote in message

news:893581FD-7677-422D-A3D5-CF01170C04F6@microsoft.com...

>I have a backup script that I'm gooing to run through task scheduler. I

>can use TS to run the Mon backup script every Monday and the

>Tuesday....etc.

> But I also have another task that runs a seperate backup at the end of

> each month. So, can I easily program the Monday task, for example, to run

> all Mondays except a specific Monday that turns out to be the last day of

> the month? Or am I going to have to spend a little cash?

> Thanks,

> Jeremy

 

You could do this:

- Schedule the every-day job to run at 10pm.

- Schedule the end-of-month job to run at 9pm.

- Get the end-of-month job to create a marker file.

- Get the every-day job to check for the existence of the marker file.

If the marker file exists, delete it and exit.

If the marker file does not exist, perform the backup.


×
×
  • Create New...