Solved

Getting NTBackup to email logs / performance reports

Posted on 2010-09-16
3
301 Views
Last Modified: 2012-06-27
I am not using SBS2003's 'Server Backup Wizard', as it lacks a lot of the basic features I'd expect in a backup wizard - Namely I can't see an easy option to configure 'incremental/diff' backups! It may be there, but I couldn't find it!

Anyway, I have configured NTbackup with a full backup on Wednesday and a full backup on Friday, with incrementals inbetween. This is the setup I'm happy with. It's working fine, however I noticed when I receive my morning email with the server performance reports, it states 'backup did not run'. How can I tell the system that it's not using the 'Server Backup Wizard', and to correctly report whether the backup has run?

0
Comment
Question by:UncleVirus
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
aoakeley earned 500 total points
ID: 33689419
download blat and use that to email logs.

Code snippit attached to find the latest log
ECHO OFF
REM|--------------------------------------------------------------------------|
REM| Change to backup log directory to search for the latest log file to send |
ECHO ON
cd C:\Documents and Settings\sysadmin\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\

ECHO OFF
REM|--------------------------------------------------------------------------|
REM| This dir command will list all log files sorted by date in bare format   |
ECHO ON
set fcmd=dir "%fld%*.log" /OD /A-D /B

REM set command will set lastf variable to the last file in set, i.e. the latest one
for /F "tokens=* delims= " %%i in ('%fcmd%') do set lastf=%fld%%%i

ECHO OFF
REM|--------------------------------------------------------------------------|
REM| convert the unicode file to ascii to allow it to be emailed.             |
TYPE %lastf% > emaillog.txt

REM|--------------------------------------------------------------------------|
REM Send emails to CorporateComputers to monitor backups.
ECHO ON

blat emaillog.txt -subject "Nightly Backup Report" -to to@domain.com -f from@domain.com.au -server mail.bigpond.com

Open in new window

0
 
LVL 1

Author Comment

by:UncleVirus
ID: 33689484
You sir, are what's commonly known as a legend! I will award you a big juicy 500 points :-) That worked perfectly. That is *Exactly* what I wanted.

I also wanted to know how to send it to a second recipient, but a quick RTFM helped :)
0
 
LVL 1

Author Closing Comment

by:UncleVirus
ID: 33689487
Simply amazing! Quick reply and perfect.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Learn about cloud computing and its benefits for small business owners.
Are you looking to recover an email message or a contact you just deleted mistakenly? Or you are searching for a contact that you erased from your MS Outlook ‘Contacts’ folder and now realized that it was important.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now