kierankelly Posted July 10, 2006 Posted July 10, 2006 Is there any way using Ntbackup, to select which job to carry out when there are two scheduled jobs on one day at the exact same time?As an example, I have scheduled a monthly backup to be carried out on the last wednesday of every month (Month7, Month8, Month9 etc), as well as a monthly backup on every 1st, 2nd, 3rd and 4th wednesday of every month (Wk1, Wk2, Wk3 etc). The majority of months, Wk4 backup clashes with the MonthX backup. I would like to configure Ntbackup to choose to carry out the month backup over the week backup but I cant figure out how. Do you have to use the command line? Any help is appreciated.
allen2 Posted July 11, 2006 Posted July 11, 2006 You just need to use a batch and task scheduler.This batch can solve the problem::beginrem wait for a random few secondsset /A A=%random%/100ping -n %A% 127.0.0.1rem end of random wait codeif exit %temp%\ntbackupinprgrs.txt goto endif not exist %temp%\ntbackupinprgrs.txt goto nextgoto begin:nextEcho Ntbackup in progress >%temp%\ntbackupinprgrs.txt rem add your ntbackup command line below.goto end:end You could remove the random wait code safely.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now