Robocopy C:\Folder1 C:\Folder2 /MIR /dcopy:T #12 To copy a directory using /IPG to limit bandwidth usage. General rule of thumb /IPG:750 will use roughly 1Mbps. Robocopy /ipg:750 /z /r:3 /w:3 /tee /LOG+:c:\robolog.txt //server1/share //server2/share
Robocopy Options and Switches: http://technet.microsoft.com/en-us/library/cc733145(WS.10).aspx
Here is a scenario/issue:
"I have a shared folder on one server that some users accessed today. Some data was created, deleted and altered.
They should have been using a share on another server, so my problem is how do I use ROBOCOPY to merge the two? Can you please help me out with the syntax?
I'm not so sure about using the /mir switch as I really do not want data deleted on the destination folder!!"
Does anyone know the solution? Thanks!
@Ed Price
/mir has this problem, of mirroring what it finds and then what id does not find. So if a file was mirrored and the other day it was removed by mistake from the source, it will be mirrored (deleted) on the destination.
I think /mir would be a solution for you by removing the modify premission from the folder where /mir will be used (on the source of course).
I would be a good idea to be one the safe side to have another robocopy without the mir of the destination to a third destination.
what are extra files?
@Bill:
According the the options shown here:
/xx Excludes extra files and directories. Extra files are files that exist in the destination directory.
/x Reports all extra files, not just those that are selected.
So, I assume that extra files (and folders) are:
Files (and folders) that exist at the copy-destination, but do not exist at the copy-source.
What's up with example #3? /S is defined as, "copy Subdirectories, but not empty ones." Doesn't seem like an appropriate copy option to use, given the intent in the example.
Are you sure /S is the correct option for example #3???