Author: jaredmagun
Subject: ROBOCOPY
Posted: 16 April 2013 at 8:01pm
I am attempting to copy from a 2003 windows server to a Netapp to migrate it there. I have been using robocopy xp and get tons of errors due to file depth. I read that using the ROBOCOPY.exe with Server 2008R2 helps for that issue. I have found that I do not see any errors when using that with the same logging switches and configuration. The problem is that I am not sure it is supressing errors because it shows red color when it gets to a certain error level. Also the format of the log is not the same even though I use the same parameters. Any insight?
Subject: ROBOCOPY
Posted: 16 April 2013 at 8:01pm
I am attempting to copy from a 2003 windows server to a Netapp to migrate it there. I have been using robocopy xp and get tons of errors due to file depth. I read that using the ROBOCOPY.exe with Server 2008R2 helps for that issue. I have found that I do not see any errors when using that with the same logging switches and configuration. The problem is that I am not sure it is supressing errors because it shows red color when it gets to a certain error level. Also the format of the log is not the same even though I use the same parameters. Any insight?
Here is a sample config:
@ECHO OFF
CLS
:LOOP
REM SET command variables
REM ================================
SET RCSERVER=servername
SET RCSOURCE=\\servername\E$
SET RCTARGET=\\vfiler_servername\E$
SET RCLOG=vfilerservernamee30.TXT
REM ================================
TITLE %RCSERVER%
ECHO Copying data from %RCSERVER%...
ROBOCOPY %RCSOURCE% %RCTARGET% /R:1 /W:1 /PF /TEE /COPY:DATSO /E /ETA /LOG+:%RCLOG% /xd "\\servername\E$\System Volume Information" /xd "\\servername\E$\desktop\Apps\recycler" /xd "\\servername\E$\._nfs" /xd "\\servername\E$\System Volume Information" /xd "\\servername\E$\recycler"
IF ERRORLEVEL 16 COLOR 4E & GOTO END
IF ERRORLEVEL 8 COLOR 4E & GOTO END
IF ERRORLEVEL 4 COLOR 2E & GOTO END
IF ERRORLEVEL 2 COLOR 2E & GOTO END
IF ERRORLEVEL 1 COLOR 2A & GOTO END
IF ERRORLEVEL 0 COLOR 2A & GOTO END
:END
GOTO LOOP
CLS
:LOOP
REM SET command variables
REM ================================
SET RCSERVER=servername
SET RCSOURCE=\\servername\E$
SET RCTARGET=\\vfiler_servername\E$
SET RCLOG=vfilerservernamee30.TXT
REM ================================
TITLE %RCSERVER%
ECHO Copying data from %RCSERVER%...
ROBOCOPY %RCSOURCE% %RCTARGET% /R:1 /W:1 /PF /TEE /COPY:DATSO /E /ETA /LOG+:%RCLOG% /xd "\\servername\E$\System Volume Information" /xd "\\servername\E$\desktop\Apps\recycler" /xd "\\servername\E$\._nfs" /xd "\\servername\E$\System Volume Information" /xd "\\servername\E$\recycler"
IF ERRORLEVEL 16 COLOR 4E & GOTO END
IF ERRORLEVEL 8 COLOR 4E & GOTO END
IF ERRORLEVEL 4 COLOR 2E & GOTO END
IF ERRORLEVEL 2 COLOR 2E & GOTO END
IF ERRORLEVEL 1 COLOR 2A & GOTO END
IF ERRORLEVEL 0 COLOR 2A & GOTO END
:END
GOTO LOOP
The log file is almost unreadable when using robocopy.exe instead of robocopyxp.exe...with the same config.