Posts Tagged ‘blat’

Replication Using RoboCopy and Blat

This item was filled under [ Server ]

What I like the most about this script is it create a date stamped log and mails the log to you if Robocopy exits with an error code.
@echo off
Echo.
Echo -Set Date Variables
Echo.
Set day=%DATE:~7,2%
Set mm=%DATE:~4,2%
Set dd=%DATE:~7,2%
Set yyyy=%DATE:~10,4%
robocopy “\\servername\source” “\\servername\destination” /E /V /LOG+:”d:\logs\robocopy_%mm%%yyyy%.txt” /r:0
if errorlevel 16 echo –Fatal Error– & goto notify
if errorlevel 8 echo –Failed Copies– [...]

Continue reading...

Tagged with: [ , , , ]