NTbackup problem



Hi,

I use this batch script as a scheduled task to make tape backups of a
Windows 2003 server:

del backup*.log
@echo off
Set MAILTO=someone@xxxxxxxxxxxxx
Set MAILHOST=our_mailserver
start /wait c:\windows\system32\rsm.exe refresh /LF"Compaq AIT 35 GB
LVD drive"
sleep 30
for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do set dd=%%i-%%j-%%k-
%%l
for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do set dt=%%l-%%k-%%j-
%%i
for /f "Tokens=1" %%i in ('time /t') do set tm=-%%i
set tm=%tm::=-%
Set dt=%dt%
set dtt=%dd%%tm%
gbmail -to %MAILTO% -s Backup_is_started_on_SAWADM02 -h %MAILHOST%
c:\windows\system32\ntbackup.exe backup "@D:\Jobs\busawadm02.bks" /d
"daily %dtt%" /v:no /r:no /rs:no /hc:on /m normal /j "daily %dtt%" /
l:f /p "8mm AIT1" /UM
c:\windows\system32\rsm.exe eject /PF"%computername%-%dtt% - 1" /
astart
find "Backup completed" backup*.log
if errorlevel 1 goto end1a
echo BACKUP SAWADM02 logfile werd aangemaakt > gelukt.txt
gbmail -to %MAILTO% -cc %MAILCC% -file gelukt.txt -s
Backup_finished_successfully_on_SAWADM02 -h %MAILHOST%
goto end1b
:end1a
echo BACKUP SAWADM02 MISLUKT > mislukt.txt
gbmail -to %MAILTO% -cc %MAILCC% -file mislukt.txt -s
Backup_failed_on_SAWADM02 -h %MAILHOST%
:end1b
rename backup*.log %computername%-%dt%.log

This script worked before I reinstalled the server. After
reinstallation, the scheduled job fails to backup the data without
writing an error in the log file. If I run this script interactively,
the backup goes fine!
Does someone know why the scheduled job fails and has a solution for
this problem?

Many thanks in advance,
Stijn Calders

.



Relevant Pages

  • Re: NTbackup problem
    ... echo BACKUP SAWADM02 logfile werd aangemaakt> gelukt.txt ... This script worked before I reinstalled the server. ... the scheduled job fails to backup the data without ...
    (microsoft.public.windowsxp.general)
  • Feedback on backup script
    ... The one problem I have is that the script keeps stopping at lines 633,635 and or 637 with the error "Path Not Found" I have emailed the original author for help but haven't heard back yet. ... I was just wondering if the problem could be that the account running the script doesn't have correct permissions to a share/directory/file that it's trying to backup? ... ' always one less than the actual number of folders. ... ' Show the user free space info on all available disk drives ...
    (microsoft.public.scripting.vbscript)
  • Re: Enterprise Manager Newbie Question
    ... a SQL backup is not a simple copy of the database files. ... Is it possible to write a script that one could run from a workstation and ...
    (microsoft.public.sqlserver.tools)
  • Re: xcopy and vbscript
    ... It takes about 5-6 minutes to backup approximately ... A copy of the script is below for reference. ... ObjShell.Popup strMessage, 5, "Backup Complete", OK_Button ... Dim sSrc, sDest ' as string ...
    (microsoft.public.scripting.vbscript)
  • Re: batch file to delete files based on criteria
    ... >> I need to throw together a simple batch file to backup a file. ... >> schedule this via Task Scheduler to run every hour or so. ... > Create a snapshot backup when a file changes. ... >!Snapshot script from inside Windows Explorer. ...
    (microsoft.public.win2000.cmdprompt.admin)

Loading