I wrote a blog earlier: xcopy is recommended for copying a large number of files in windows. We recommend that you use robocopy in the comments of netlog.
The use of robocopy not only greatly improves the replication efficiency, but also provides powerful features.
Use robocopy source DESTIN/E to copy files. In this case, the target directory DESTIN is empty. It takes 22 minutes to copy the file. The statistics are output by robocopy.
Run the robocopy source DESTIN/e command again to copy the file. At this time, the target directory already has the file that was last copied. The result takes only one minute.
It indicates that robocoy checks whether the source and target files are consistent before copying. If they are consistent, the replication efficiency will be greatly improved when the source directory and target directory have the same files.
In addition, robocopy provides many features not available in xcopy:
- You can copy multiple file types to the target folder.
- Specifies the file type that is not copied during replication.
- You can specify the number of times the directory is copied. For example, you can only copy two levels of directories.
- You can copy files based on their modification time or access time. For example, you can copy files modified within three days.
- Copy files larger than kb and smaller than 1 MB by file size.
- Image mode. Objects in the target folder but not in the source folder are deleted during copy.
- Supports file Movement
- Monitor the folder. Once the files in the folder change, the changed files are automatically copied.
You can type robocopy/? In the command line /? View.
Robocopy is a replication tool provided by Microsoft in Windows Server 2003 Resource Kit tools. The execution file of robocopy can be found in the installation directory of resource kit tools.
Windows Server 2003 Resource Kit tools: http://download.microsoft.com/download/8/e/c/8ec3a7d8-05b4-440a-a71e-ca3ee25fe057/rktools.exe.