Read the Help files with NTBackup for scripting options.<br>
<br>
Are you using IE4? If so then use the Task Scheduler in My Computer rather than WinAt - it's the same mechanism, just an easier frontend. <p>Mike Hoffman<br><a href=mailto:Mike@mcsch.org.uk>Mike@mcsch.org.uk</a><br><a href=
Do it with batch files and the AT command.<br>
<br>
The following assumes your server has a D:\Admin\Jobs folder...<br>
<br>
AddJob.bat schedules the various types of backup to run at 2:00 AM<br>
BackUp.bat actually calls NTBackup with the correct switches for Differential or Normal backups. <br>
<br>
BackUp.bat can be customized for the drives you want to backup and the server name. It also sends pop up messages to the console with the starting and ending time of the backup.<br>
<br>
The method illustrated does differential backups on Mon-Wed and Friday nights. Thur. night (Fri AM is a full backup.) The weekend backups are also differential, but appended to the tape instead of overwritng it. The The parameters passed to BackUp.bat must be sent in uppercase. (I've been too lazy to add case checking.)<br>
<br>
ALSO:<br>
Be sure you are using the NT Schedule service and NOT the Task Scheduler that gets installed with IE4 or IE5.<br>
<br>
<br>
AddJob.bat<br>
=======================<br>
at 02:00 /INTERACTIVE /Every:M,Su D:\Admin\Jobs\BackUp.Bat WEEKEND<br>
at 02:00 /INTERACTIVE /Every:T,W,Th,S D:\Admin\Jobs\BackUP.Bat DAILY<br>
at 02:00 /INTERACTIVE /Every:F D:\Admin\Jobs\BackUp.Bat FULL<br>
=========================<br>
<br>
BackUp.bat<br>
================================<br>
@echo off<br>
rem -------------------------------------------------------<br>
rem NT Backup Driver<br>
rem <br>
rem Backup parameters from command line:<br>
rem FULL - Performs full backup, including registry.<br>
rem DAILY - Performs differential in overwrite mode.<br>
rem WEEKEND - Performs differential in append mode.<br>
rem -------------------------------------------------------<br>
<br>
setlocal<br>
<br>
rem --- Modify these by server.<br>
set COMP=SERVERNAME<br>
set DRIVES=C: D: E: G:<br>
set JOBDIR=D:\ADMIN\JOBS<br>
<br>
rem ------------------------------------------------------- End of configuration variables<br>
<br>
if XX%1==XXDAILY set OPTIONS=/HC:ON<br>
if XX%1==XXDAILY set TYPE=Differential<br>
<br>
if XX%1==XXWEEKEND set OPTIONS=/A /HC:ON<br>
if XX%1==XXWEEKEND set TYPE=Differential<br>
<br>
if XX%1==XXFULL set OPTIONS=/B /HC:ON<br>
if XX%1==XXFULL set TYPE=Normal<br>
<br>
echo Sending startup messages<br>
net send %COMP% "Start %TYPE% Backup of %COMP%"<br>
<br>
if "xx" NEQ "xx%DRIVES%" echo Running %TYPE% backup on drives ...<br>
if "xx" NEQ "xx%DRIVES%" NTBackup backup %DRIVES% %OPTIONS% /T %TYPE% /D "%TYPE% Backup of %COMP% Drives" <br>
<br>
echo Sending completed messages<br>
net send %COMP% "End %TYPE% Backup of %COMP%"<br>
<br>
endlocal<br>
rem -------------------------------------------------------<br>
================================ <p> Jeff<br><a href=mailto: masterracker@hotmail.com> masterracker@hotmail.com</a><br><a href= > </a><br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.