Robocopy is the New Xcopy!
Robocopy.exe “C:\Users\UserName” “G:\username_Backup” /copy:DOTS /z /s /e /R:5 /W:10 /LOG:c:\copy.log /TEE
Robocopy “C:\Users\UserName” “G:\username_Backup” /MIR /XA:SH /XD AppData /XJD /R:5 /W:15 /MT:32 /V /NP /LOG:Backup.log
Why use Robocopy?
If you’re conscientious about the safety of your data, chances are good that you are already using Windows 7’s Backup and Restore tool to create an image file of your hard disk as well as to back up your data files on a regular schedule. However, you may like to have an additional copy of your data files just to be on the safe side. While you can easily do so by copying your files and folders to an external hard drive via drag and drop, that can be a tedious operation.
Fortunately, Robocopy provides more than 80 different command-line switches that will allow you to create a powerful data backup operation. To help you get a leg up, I have delved into Robocopy ‘s command-line switches and have developed a nice little script that you can use to create an exact mirrored duplicate of all the data files in your user profile folder (C:\Users\YourName). Let’s take a closer look.
Here are other Sites with information about Command Switches.