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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

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 AdebayoGlobal 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

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.