RoboCopy Syntax help, speed, many files,

A few questions I have, with the syntax below will it do an incremental copy after the first initial copy or do you have to use the .MIR to do that?

robocopy C:\test D:\Destination /E /COPY:DATOU /MT:32 /B /XF Stupidfiles.jpg /R:0 /LOG+:%LogFile%

Open in new window

I am copying a folder with a lot of files, it cannot be split or zipped. It is very slow, is there anything I can do to speed it up with different switches? Is there a better and faster copy option for a large number of files?
Who is Participating?
joelsplaceConnect With a Mentor Commented:
It won't copy things that are already there.  MIR will delete files in the destination that are deleted from the source.  The initial copy will be slow but if not much changes the next should be fast.
You can test it on a dir with just a couple of files to see what it does.
Pradeep DubeyConsultantCommented:
As you are copying from C drive to D drive so there is nothing to do with speed. Robocopy is the best option which is already used by you. Let us know the OS where you are using this command.
Pradeep DubeyConsultantCommented:
/E => already doing mirror using this switch
/COPY:DATOU => copying with flags
/MT:32 => multi-threaded copies with n threads (default 8)
/B =>Copying files in Backup mode.
/XF Stupidfiles.jpg => excluded Files matching
/R:0 => not using retry so this switch not required.
/LOG+:%LogFile% => generating logs.

with all these switch it has to do a lot of work along with the backup mode. you can review these options once if you can remove any unwanted task then please remove it for easier task and faster.

NOTE: /E switch is used for mirror so it will delete files in the destination that are deleted from the source.
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

REIUSAAuthor Commented:
Sorry left out some details. It is going over a WAN. I have done similar copies with the same amount of data but less files that went a lot faster. Using Windows 2008 to run command from. The files are on a network share on the same local network as the server.

The help file says "/E :: copy subdirectories, including Empty ones." It has to be used with Purge to mimic /MIR.
I've got a setup that has to sync a lot of data over a very slow WAN.  I use Linux boxes with RSync that have the Windows shares mounted.  It works great.  RSync only copies changed bits and not the whole files.  It is also fast even on old PIII boxes.  I'm running 1GHz PIIIs at several locations that RSync 100 plus Gigs of files every night over 2-4Mb connections.  The first sync took a week or more but now it doesn't have any trouble running overnight since not too much is added daily.
Emmanuel AdebayoConnect With a Mentor Global Windows Infrastructure Engineer - ConsultantCommented:
I have used robocopy to copy files and synch files over WAN links without experience any slowness, as I used /MIR to just copy the change/incremental after the initial copy.

You can also use teracopy

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.