Simple way to email nightly backup log?
- From: Leythos <void@xxxxxxxxxxx>
- Date: Sat, 3 May 2008 20:01:46 -0400
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)
.
- Follow-Ups:
- Re: Simple way to email nightly backup log?
- From: Lanwench [MVP - Exchange]
- Re: Simple way to email nightly backup log?
- From: Brian Cryer
- Re: Simple way to email nightly backup log?
- Prev by Date: Re: Same Email Domain 2 Sites
- Next by Date: Re: automatic VPN connection as a service? from sbs to sbs
- Previous by thread: Strange Outlook Mobile Things Happening
- Next by thread: Re: Simple way to email nightly backup log?
- Index(es):
Relevant Pages
|