Solved

Getting NTBackup to email logs / performance reports

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

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!
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
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…

773 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