Jump to content

Recommended Posts

Posted

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.


Posted

You just need to use a batch and task scheduler.

This batch can solve the problem:

:begin
rem wait for a random few seconds
set /A A=%random%/100
ping -n %A% 127.0.0.1
rem end of random wait code
if exit %temp%\ntbackupinprgrs.txt goto end
if not exist %temp%\ntbackupinprgrs.txt goto next
goto begin
:next
Echo Ntbackup in progress >%temp%\ntbackupinprgrs.txt
rem add your ntbackup command line below.


goto end
:end

You could remove the random wait code safely.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...