Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WINAT scheduler & NT Backup 2

Status
Not open for further replies.

Foduck

MIS
Sep 17, 1999
10
0
0
US
Visit site
I can't seem to get WINAT to schedule my NTBackup sessions. This should be easy, right? Can someone give me a step by step?
 
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= personal technical ramblings page</a><br>
 
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% &quot;Start %TYPE% Backup of %COMP%&quot;<br>
<br>
if &quot;xx&quot; NEQ &quot;xx%DRIVES%&quot; echo Running %TYPE% backup on drives ...<br>
if &quot;xx&quot; NEQ &quot;xx%DRIVES%&quot; NTBackup backup %DRIVES% %OPTIONS% /T %TYPE% /D &quot;%TYPE% Backup of %COMP% Drives&quot; <br>
<br>
echo Sending completed messages<br>
net send %COMP% &quot;End %TYPE% Backup of %COMP%&quot;<br>
<br>
endlocal<br>
rem -------------------------------------------------------<br>
================================ <p> Jeff<br><a href=mailto: masterracker@hotmail.com> masterracker@hotmail.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top