Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Can Windows Backup (ntbackup) email a backup report?

Posted on 2009-05-14
6
Medium Priority
?
1,070 Views
Last Modified: 2012-05-11
Hi,

I need to genertate reports or logs and have them emailed to me so I can see if the backups completed or failed without actually logging into the server.

Is there anyway to do this?
0
Comment
Question by:borgmember
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 4

Expert Comment

by:Mitch1981
ID: 24389911
I wrote this and other script, you can find it to: www.windowserver.it

Bye.
0
 

Author Comment

by:borgmember
ID: 24389930
Sorry, but I do not speak whatever language that site is in :)
0
 
LVL 4

Expert Comment

by:Mitch1981
ID: 24390030
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 85

Accepted Solution

by:
oBdA earned 2000 total points
ID: 24390070
Complete the script below (variables and your ntbackup switches); it uses blat.exe (out it into the folder with the script) to send the email and will (hopefully) find and send the latest log file.
happy mailing: blat online
http://www.blat.net/

@echo off
setlocal
set From=backup@domain.com
set To=me@domain.com
set SMTP=smtp.domain.com
set Subject=Backup Report
set LogFileFolder=%UserProfile%\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data
 
%Systemroot%\system32\ntbackup.exe ...
 
for /f "delims=" %%a in ('dir /o:d /b "%LogFileFolder%\*.log"') do set LogFile=%%a
"%~dp0blat.exe" "%LogFileFolder%\%LogFile%" -f %From% -to %To% -server %SMTP% -subject "%Subject%"

Open in new window

0
 

Author Closing Comment

by:borgmember
ID: 31581701
I used this post to get it working. I also used information from this site: http://www.fishbrains.com/posts/154

I had to modify the script to fit my needs, but the middle part starting with %systemroot% now looks like this:

%Systemroot%\system32\ntbackup.exe backup "@c:\scripts\ntbackup\nightly.bks" /d "Nightly Backup" /v:yes /r:no /rs:no /hc:off /m normal /j "nightly" /l:s /f e:\nightly.bkf

Here is the contents of the nightly.bks file:

C:\
D:\
SystemState
0
 
LVL 14

Expert Comment

by:quizwedge
ID: 32802438
Instead of "%~dp0blat.exe", I used the actual path as "%~dp0blat.exe" didn't work for me, but what a great script!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

660 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