General discussion

Locked

backup failure

By jnguyen20 ·
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 :)

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by neilb@uk In reply to backup failure

This might seem really stupid but try wrapping @C:\local\scripts\backup\nightly.bks in doubl-quotes.

Collapse -

Backup failure

by robin.johnson In reply to backup failure

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

Back to Windows Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums