Discussion Locked

backup failure

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Anyone know whats wrong with this batch file?

set LOGFILE=c:\var\log\backup.log
echo ========== >> %LOGFILE%
date /t >> %LOGFILE%
time /t >> %LOGFILE%
echo ---------- >> %LOGFILE%
echo running rsm: >> %LOGFILE%
rsm refresh /lf"HP C5683A SCSI Sequential Device" >> %LOGFILE%
echo running ntbackup: >> %LOGFILE%
ntbackup backup @C:\local\scripts\backup\nightly.bks /p "4mm DDS" /m normal /j "firehall backup" /hc:on /um

problem log created says 'it can't find the nightly.bks' file which IS there.

problem began when server was upgraded from 2000 to 2003 server. I'm going to update server os tonight.

Thanks for any help :)

2 replies

by robin.johnson

ive seen this before, if you recreate the BKS file through the NT backup Wizard and replace the current bks, it works. No idea why this sometimes happens. I always keep a copy of my bks in another location, and then copy and overwrite the original when it gets "corrupt"

I would also consider adding the start /wait rsm.exe refresh /lf"library_name" if you are running ur backup via a .bat file.
Use the rsm view /tlibrary command in the command prompt to view ur library name. I've included a copy of our backup.bat file below that works in 2003 with all our servers.

start /wait rsm.exe refresh /lf"library_name"
sleep 40
c:\winnt\system32\ntbackup.exe backup ?@c:\scripts\backup\fullbackup.bks? /n ?ServerName? /d ?Tape Label? /v:yes /r:no /rs:no /hc:on /m normal /j ?Full Backup? /l:s /p ?LTO Ultrium? /um

This discussion is closed to new replies.