Solved

Getting NTBackup to email logs / performance reports

Posted on 2010-09-16
3
302 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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to add replacement disk to HP RAID ? 16 90
data center consolidation 8 91
AD Replications issues 12 87
Multiple Send Connectors - Exchange (SBS 2008) 10 52
How to fix error ""Failed to validate the vCentre certificate. Either install or verify the certificate by using the vSphere Data Protection Configuration utility" when you are trying to connect to VDP instance from Vcenter.
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
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…

867 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

19 Experts available now in Live!

Get 1:1 Help Now