Robocopy or Xcopy
Hi all
I try to copy data from a location on 1 2008 R2 server to another location on a different 2008 R2 Server with everything intact ie. permissions, data, etc
My bat file looks like this :
@echo off
cls
robocopy "source" "destination" /copyall /zb /sec /e /w:1 /r:1 /log+:<logfilelocation.log> /tee
When i start the bat file it would sit at this screen for a while before continuing: (I cannot understand why)
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Wed Dec 14 12:21:17 2011
Source : <>
Dest :
<>
Files : *.*
Options : *.* /TEE /S /E /COPY:DATS /ZB /R:1 /W:1
------------------------------------------------------------------------------
0 e:\Data\Shared Data\Shares\
Why does it take so long at that screen ( 2 - 10minutes) before continuing. And that goes for every "directory" line like the one above. Should it be like that?
or would XCOPY be a better option for me to use? Got the following syntax from someone to use as XCOPY
xcopy "source" "destination" /O /X /E /H /K >> e:\<logfilename>.log
December 14th, 2011 5:35am
Perhaps there is a change in behaviour between XP027 and previous XP026 (and later). Look into
http://blogs.technet.com/b/ben_parker/archive/2009/07/01/the-security-permissions-aren-t-the-same-when-i-use-robocopy-copyall-or-robocopy-sec.aspx
Regards
Milos
Free Windows Admin Tool Kit Click here and download it now
December 14th, 2011 5:48am
Hi CraMey,
Thank you for your post.
/sec
Copies files with security (equivalent to /copy:DAT).
/copyall
Copies all file information (equivalent to /copy:DATSOU).
Please try to test using sec or copyall parameter like command below:
robocopy "source" "destination" /copyall /log+:<logfilelocation.log> /tee
robocopy "source" "destination" /sec /log+:<logfilelocation.log> /tee
If there are more inquiries on this issue, please feel free to let us know.
Regards,Rick Tan
TechNet Community Support
December 15th, 2011 1:56am
Hi CraMey,
Thank you for your post.
/sec
Copies files with security (equivalent to /copy:DAT).
/copyall
Copies all file information (equivalent to /copy:DATSOU).
Please try to test using sec or copyall parameter like command below:
robocopy "source" "destination" /copyall /log+:<logfilelocation.log> /tee
robocopy "source" "destination" /sec /log+:<logfilelocation.log> /tee
If there are more inquiries on this issue, please feel free to let us know.
Regards,Rick Tan
TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
December 15th, 2011 9:49am


