Link to home
Start Free TrialLog in
Avatar of REIUSA
REIUSAFlag for United States of America

asked on

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?
Avatar of Pradeep Dubey
Pradeep Dubey
Flag of India image

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.
ASKER CERTIFIED SOLUTION
Avatar of joelsplace
joelsplace
Flag of Afghanistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
/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.
Avatar of REIUSA

ASKER

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.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial