?
Solved

Robocopy reporting/ notification

Posted on 2010-09-02
1
Medium Priority
?
1,452 Views
Last Modified: 2012-05-10
Hello All

I have a Windows 2003 SP2 server and I will be nightly copying user data from there to another server.

I would like some sort of reporting/notification of how the nightly Robocopy job goes.

Does anyone know how we can achieve this? How can I be sure that the data copy job works - ideally, there would be some alert if it -didn't- work.

Any help appreciated guys.
0
Comment
Question by:Joe_Budden
[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
1 Comment
 
LVL 85

Accepted Solution

by:
oBdA earned 2000 total points
ID: 33590654
Run a batch script that starts robocopy with the necessary arguments and sends an email (blat.exe from http://www.blat.net/) if the errorlevel is 4 or higher (check robocopy.doc in the ResKit installation folder for details.
Rough draft:
@echo off
setlocal
set LogFile=%~dpn0.log
robocopy.exe "S:\ource\folder" "T:\arget\folder" /mir /np /nfl /ndl /tee /log:"%LogFile%"
if errorlevel 4 (
  blat.exe "%LogFile%" -to me@domain.com -f robocopy@domain.com -subject "Error during robocopy" -server smtp.domain.com
)

Open in new window

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

777 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