eject command


G

Guest

Hi,

Was wondering if anyone can help me figure out why my tape won't eject. The
following is my backup script that I use in scheduler to perform daily
backups.

echo off
start /wait rsm.exe refresh /LF"daily backup"
c:\winnt\system32\ntbackup.exe backup systemstate c:\ d:\ "daily backup"
/v:no /r:no /rs:no /hc:blush:n /m normal /j "daily.job" /l:f /p "4mm dds" /um
/hc:blush:n
move "%path%\backup*.log" "d:\ntbackup\logs\%date%.log"
rsm.exe eject /PF"daily Backup - 1" /astart
exit

I would also appreciate it if someone can point me to some documentations on
how to put in a command to have an error report mailed back to me or even
have the backup logs emailed to me...

Any help will be greatly appreciated.

Thank you.

Ray
 
Ad

Advertisements

P

Pegasus \(MVP\)

webitect said:
Hi,

Was wondering if anyone can help me figure out why my tape won't eject. The
following is my backup script that I use in scheduler to perform daily
backups.

echo off
start /wait rsm.exe refresh /LF"daily backup"
c:\winnt\system32\ntbackup.exe backup systemstate c:\ d:\ "daily backup"
/v:no /r:no /rs:no /hc:blush:n /m normal /j "daily.job" /l:f /p "4mm dds" /um
/hc:blush:n
move "%path%\backup*.log" "d:\ntbackup\logs\%date%.log"
rsm.exe eject /PF"daily Backup - 1" /astart
exit

I would also appreciate it if someone can point me to some documentations on
how to put in a command to have an error report mailed back to me or even
have the backup logs emailed to me...

Any help will be greatly appreciated.

Thank you.

Ray

I can't tell you why your tape won't eject - I would have used the same
command.

Here is a batch file you can use to mail the most recent backup report:

@echo off
1 for /F "tokens=2 delims=/ " %%a in ('echo %date%') do set dom=%%a
2 if not exist d:\Logs\%dom% md d:\Logs\%dom%
3 set Loc=C:\Documents and Settings\config\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data
4 if exist "%temp%\Backup.log" del "%temp%\Backup.log"
5 echo F | xcopy /d "%Loc%\*.log" "%temp%\Backup.log"
6 type %temp%\Backup.log > "d:\Logs\%dom%\Backup.log"

Line1: Create a variable for the day of the week
Line2: Create a final folder for the backup report
Line3: Create a variable that points to the location where ntbackup.exe
drops its backup report. Set "config" to the correct account.
Line5: Extract the most recent backup report.
Line6: Convert unicode to straight ASCII, and store the report in its final
location.

You can now use any public domain mailer programs to send the report
to yourself, e.g. sendmail, mailto, blat.
 
Ad

Advertisements

G

Guest

Hi Pegasus,

Thanks for the help. I really appreciate the script for the email. If yo
ucome across anything regarding the eject please let me know. Thanks.

Ray
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top