Ive found (S:/ is Source and D:/ is Destination)
robocopy S:/ D:/ /MIR
But there are sys files it doesn't copy over.
How can I make a "dd" out of robocopy?
Best Answer sc302 , 16 April 2014 - 19:39
system files won't copy over even with the copy command. Mir = /e + /purge
/E :: copy subdirectories, including Empty ones.
/PURGE :: delete dest files/dirs that no longer exist in source.
/MIR :: MIRror a directory tree (equivalent to /E plus /PURGE).
will give you all of the commands.
I would do this
robocopy s: d: /E /MT:20 /V /ETA /LOG:c:\users\userid\desktop\robocopy.txt
This way it will do a multithreaded copy (copying 20 files at a time vs 1 at a time), and give you a log of what it misses or errors on, if you want to purge the files that are no longer on the source then by all means do the MIR. After you have found the files with the system attribute in the log you can create a batch file rather quickly to remove the system attribute on those files and run the copy again. Note that if a file is in use you cannot copy it in this method, usually system files are in use like the explorer.exe. Keep in mind that hidden files/folders also will not be copied.Go to the full post