Robocopy fails sporadically
From: Bart Magiure (itsupinfo1_at_andrewsonline.co.uk)
Date: 05/25/04
- Next message: donald: "user mode, full access vs. author mode"
- Previous message: Bob: "time sync"
- Messages sorted by: [ date ] [ thread ]
Date: 25 May 2004 08:26:58 -0700
We are having a problem with Robocopy. We are using Robocopy XP010 to
do a daily copy of data across a network to a Windows 2003 Server. We
use a batch file to run Robocopy and we log the output to two
logfiles. The process often fails but not in a consistent way.
Sometimes it will run for several days, then fail, then run OK again
the next day. When it fails it is always with "ERROR 53 (0x00000035)
Accessing Source Directory". We have verified that we can see the
source PC by adding a ping to the batch file and we have added a 5
minute wait and retry on failure. This retry sometimes succeeds - as
can be seen below, but not consistently. The ping response times are
the same on the days the process fails as on the days it succeeds. The
source PCs are XP with SP1 and Windows 2000 with SP4, there is no
consistency about which ones fail. The server does not do anything
different at the times the robocopies fail.
rem ========================Part of the batch file we use to run
Robocopy========================
@Echo START %~n0 Backup >> \\Ourserver\Backups\%~n0BackupSummary.log
date /t >> \\Ourserver\Backups\%~n0BackupSummary.log
time /t >> \\Ourserver\Backups\%~n0BackupSummary.log
ping %~n0 | find "Reply" >> \\Ourserver\Backups\%~n0BackupSummary.log
@echo off
robocopy \\%~n0\DataShare\DATA \\Ourserver\Backups\%~n0\DATA /e /np
/ndl /xo /copy:datso /njh /purge /TBD /r:4 /w:5
/log+:\\Ourserver\Backups\%~n0BackupDETAILS.log
if errorlevel 16 echo FATAL ERROR on BACKUP of %~n0's DATA >>
\\Ourserver\Backups\%~n0BackupSummary.log & goto TRYAGAIN
if errorlevel 8 echo FAILED COPIES on BACKUP of %~n0's DATA >>
\\Ourserver\Backups\%~n0BackupSummary.log & goto END
if errorlevel 4 echo MISMATCHES on BACKUP of %~n0's DATA >>
\\Ourserver\Backups\%~n0BackupSummary.log & goto END
if errorlevel 2 echo EXTRA FILES on BACKUP of %~n0's DATA >>
\\Ourserver\Backups\%~n0BackupSummary.log & goto END
if errorlevel 1 echo Copy successful on BACKUP of %~n0's DATA >>
\\Ourserver\Backups\%~n0BackupSummary.log & goto END
if errorlevel 0 echo no files changed on BACKUP of %~n0's DATA >>
\\Ourserver\Backups\%~n0BackupSummary.log & goto END
sleep 300
:TRYAGAIN
robocopy \\%~n0\DataShare\DATA \\Ourserver\Backups\%~n0\DATA /e /np
/ndl /xo /copy:datso /njh /purge /TBD /r:4 /w:5
/log+:\\Ourserver\Backups\%~n0BackupDETAILS.log
if errorlevel 16 echo FATAL ERROR on BACKUP of %~n0's DATA >>
\\Ourserver\Backups\%~n0BackupSummary.log & goto END
if errorlevel 8 echo FAILED COPIES on BACKUP of %~n0's DATA >>
\\Ourserver\Backups\%~n0BackupSummary.log & goto END
if errorlevel 4 echo MISMATCHES on BACKUP of %~n0's DATA >>
\\Ourserver\Backups\%~n0BackupSummary.log & goto END
if errorlevel 2 echo EXTRA FILES on BACKUP of %~n0's DATA >>
\\Ourserver\Backups\%~n0BackupSummary.log & goto END
if errorlevel 1 echo Copy successful on BACKUP of %~n0's DATA >>
\\Ourserver\Backups\%~n0BackupSummary.log & goto END
if errorlevel 0 echo no files changed on BACKUP of %~n0's DATA >>
\\Ourserver\Backups\%~n0BackupSummary.log & goto END
:END
date /t >> \\Ourserver\Backups\%~n0BackupSummary.log
time /t >> \\Ourserver\Backups\%~n0BackupSummary.log
========================Part of the BackupSummary
log========================
START RemotePC Backup
24/05/2004
19:00
Reply from 10.1.1.129: bytes=32 time=26ms TTL=126
Reply from 10.1.1.129: bytes=32 time=28ms TTL=126
Reply from 10.1.1.129: bytes=32 time=28ms TTL=126 Reply from
10.1.1.129: bytes=32 time=26ms TTL=126
FATAL ERROR on BACKUP of RemotePC's DATA
EXTRA FILES on BACKUP of RemotePC's DATA
24/05/2004
19:19
========================Part of the BackupDetails
log========================
2004/05/24 19:01:37 ERROR 53 (0x00000035) Accessing Source Directory
\\RemotePC\DataShare\DATA\
The network path was not found.
- Next message: donald: "user mode, full access vs. author mode"
- Previous message: Bob: "time sync"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|