Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Getting NTBackup to email logs / performance reports

Posted on 2010-09-16
3
Medium Priority
?
336 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 2000 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
Suggested Courses

971 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