Simple way to email nightly backup log?



On my non-SBS servers I run a script that will run backup to tape and
then email me the log file (actually to the support@xxxxxxxxxxx) and
this lets me and the person that changes the tapes know that things are
working (or not).

What if I want to do this with SBS, but I still want to allow the wizard
interface to work for the GUI?

Normally I have a batch file with the following contents:

rem @echo off

rem This batch file is scheduled with the AT command to run at 1am each
day.

rem Next line will refresh the remote storage management to recognized
rem new media that is inserted so the next backup command does not
fail,
rem thinking it is overwriting something it should not.


set logfile="%USERPROFILE%\Local Settings\Application Data\Microsoft
\Windows NT\NTBackup\data\backup01.log"


del /Q C:\backups\Tape_backup.log
echo.Backup Started %date% %time% > C:\backups\Tape_backup.log
echo >> C:\backups\Tape_backup.log

start /wait rsm.exe refresh /LF"LTO Ultrium"

start /wait %windir%\system32\ntbackup.exe backup "@c:\Backups
\NIGHTLY_TAPE_FULL.bks" /v:no /r:no /rs:no /hc:on /m normal /j "Daily
MAIN Backup" /l:s /p "LTO Ultrium" /um

type %logfile% >> C:\backups\Tape_backup.log

@call C:\backups\eject_tape.bat
@call C:\backups\email_log.bat

Thanks

--
- Igitur qui desiderat pacem, praeparet bellum.
- Calling an illegal alien an "undocumented worker" is like calling a
drug dealer an "unlicensed pharmacist"
spam999free@xxxxxxxxxx (remove 999 for proper email address)
.



Relevant Pages

  • Re: Backup bat file
    ... > trying to use a bat file to make the backup run and backup directly ... tape library, media type, etc.... ... rem you'll need sleep.exe from the resource kit. ... echo You may check the attached log to verify that it was successful. ...
    (microsoft.public.win2000.general)
  • Re: SCSI TAPE Backup Problems.
    ... Dell Powervault 100T external tape drive. ... been granted to the files for both backup operators and the administrator ... powered SBS server that is the problem. ... Calling an illegal alien an "undocumented worker" is like calling a ...
    (microsoft.public.windows.server.sbs)
  • Re: Backup to Hard Drive
    ... The 'daytag' variable could easily be used for file based backup to ... rem Change to reflect tape library device, comment out if using file backup. ... >>> drives, but when I am trying to click on the link I get an error, so I ...
    (microsoft.public.windows.server.sbs)
  • RE: NT Backup inconsistent medium
    ... directory's to a tape with NT backup it works fine. ... REM Script gebaseerd op NT Backup ... REM Tape dient unieke naam te hebben, ... ECHO Start backup procedure ...
    (microsoft.public.windows.server.sbs)
  • RE: NT Backup inconsistent medium
    ... I would configure the backup with NTBackup and set a schedule from there. ... | directory's to a tape with NT backup it works fine. ... | @ECHO Off ... | REM Script gebaseerd op NT Backup ...
    (microsoft.public.windows.server.sbs)