Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Significantly slower directory tree replication performance when you use the Robocopy command in Windows 7 or in Windows Server 2008 R2


View products that this article applies to.

Symptoms

On a computer that is running Windows 7 or Windows Server 2008 R2, the performance of directory tree replication is significantly slower when you use the Robocopy command compared to earlier versions of Windows.

↑ Back to the top


Cause

This issue occurs because additional code was added to copy extended attributes and alternative data streams for directories.

↑ Back to the top


Resolution

This hotfix adds the following copy options to the Robocopy command:
Copy optionsDescriptions
/nodcopycopies no directory information
/dcopy: copy flagsThe following copy flags are added:
D copies directory data
A copies directory attributes
Note /dcopy:T was included in the Robocopy command.
Notes
  • The default behavior of earlier versions of Robocopy (the versions that are included in Resource Kits, in Windows Vista, and in Windows Server 2008) is the same behavior as using the /DCOPY:A option.
  • The default Robocopy behavior in Windows 7 and in Windows Server 2008 R2 (in the released versions and the hotfixed versions) is the same as using the /DCOPY:DA option.
  • To return Robocopy performance to an amount that is closer to earlier versions of Robocopy, you have to add the /DCOPY:A option to all Robocopy commands.
  • To improve Robocopy performance even more, use the /NODCOPY optioninstead of the /DCOPY:A option. This provides the best performance, but at the expense of not copying the DOS-style attributes, the extended attributes, and the alternae data streams of directories. Few applications depend on DOS-style attributes for directories. Therefore, if the source directories have no associated extended attributes or alternate data streams, the attempts to copy these attributes and data streams can be safely omitted.
  • Copying the NTFS file system access control list security information is requested by specifying the /SEC or /COPY:S option.

    Note When you request to copy the security information of files, security information of directories is also copied. This is the same behavior from earlier versions of Robocopy.
  • In Windows 7 and in Windows Server 2008 R2, copying security information of directories is only performed the first time that a target directory is copied or created. Earlier versions of Robocopy copied the NTFS access control list security information for all existing directories. However, this created too much NTFRS replication churn if the Robocopy target was also involved in NTFRS replication.
  • In Windows 7 and in Windows Server 2008 R2, you can force replication of NTFS access control lists for all directories by adding the /MIR option to Robocopy commands that copy security.

    Note/MIR implies /PURGE. Therefore, adding the /MIR option to existing Robocopy commands can cause files and whole directory trees to be deleted if they exist at the destination, but not at the source. Use the /MIR option with caution, because items that are deleted by using /MIR cannot be undeleted.
  • In Windows 7 and in Windows Server 2008 R2, you cannot force NTFS access control lists for all directories to replicate unless you specify /MIR and delete additional items from the destination.

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.


Prerequisites

To apply this hotfix, you must be running one of the following operating systems:
  • Windows 7
  • Windows 7 Service Pack 1 (SP1)
  • Windows Server 2008 R2
  • Windows Server 2008 R2 Service Pack 1 (SP1)
For more information about how to obtain a Windows 7 or Windows Server 2008 R2 service pack, click the following article number to view the article in the Microsoft Knowledge Base:

976932 Information about Service Pack 1 for Windows 7 and for Windows Server 2008 R2

Registry information

To apply the hotfix in this package, you do not have to make any changes to the registry.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The global version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.
Windows 7 and Windows Server 2008 R2 file information notes
  • The files that apply to a specific product, milestone (RTM, SPn), and service branch (LDR, GDR) can be identified by examining the file version numbers as shown in the following table:
    VersionProductMilestoneService branch
    6.1.760
    0.21xxx
    Windows 7 and Windows Server 2008 R2RTMLDR
    6.1.760
    1.21xxx
    Windows 7 and Windows Server 2008 R2SP1LDR
  • The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately in the "Additional file information for Windows Server 2008 R2 and for Windows 7" section. MUM and MANIFEST files, and the associated security catalog (.cat) files, are extremely important to maintain the state of the updated components. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.
For all supported x86-based versions of Windows 7
File nameFile versionFile sizeDateTimePlatform
Ntfs.sys6.1.7600.211461,210,73607-Feb-201205:41x86
Ntfs.sys6.1.7601.219171,211,76007-Feb-201206:14x86
Robocopy.exe5.1.10.1027100,86407-Feb-201205:30x86
Robocopy.exe5.1.10.1027100,86407-Feb-201206:08x86
For all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
Ntfs.sys6.1.7600.211461,685,36007-Feb-201206:34x64
Ntfs.sys6.1.7601.219171,660,27207-Feb-201206:29x64
Robocopy.exe5.1.10.1027126,97607-Feb-201206:22x64
Robocopy.exe5.1.10.1027126,97607-Feb-201206:18x64
Robocopy.exe5.1.10.1027100,86407-Feb-201205:30x86
Robocopy.exe5.1.10.1027100,86407-Feb-201206:08x86
For all supported IA-64-based versions of Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
Ntfs.sys6.1.7600.211463,552,62407-Feb-201205:22IA-64
Ntfs.sys6.1.7601.219173,555,69607-Feb-201205:22IA-64
Robocopy.exe5.1.10.1027273,40807-Feb-201205:10IA-64
Robocopy.exe5.1.10.1027273,40807-Feb-201205:12IA-64
Robocopy.exe5.1.10.1027100,86407-Feb-201205:30x86
Robocopy.exe5.1.10.1027100,86407-Feb-201206:08x86

↑ Back to the top


Workaround

To work around this issue, use the Robocopy command that was included in an earlier version of Microsoft Resource Kit.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More Information

For more information about the Robocopy command, visit the following Microsoft website:For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Additional file information

Additional file information for Windows 7 and for Windows Server 2008 R2

Additional files for all supported x86-based versions of Windows 7
File nameX86_microsoft-windows-ntfs_31bf3856ad364e35_6.1.7600.21146_none_a6fd402b973b9a8d.manifest
File versionNot Applicable
File size14,508
Date (UTC)07-Feb-2012
Time (UTC)06:02
PlatformNot Applicable
File nameX86_microsoft-windows-ntfs_31bf3856ad364e35_6.1.7601.21917_none_a9053703944895e2.manifest
File versionNot Applicable
File size14,508
Date (UTC)07-Feb-2012
Time (UTC)06:41
PlatformNot Applicable
File nameX86_microsoft-windows-robocopy_31bf3856ad364e35_6.1.7600.21146_none_c79345ef66b43db3.manifest
File versionNot Applicable
File size2,586
Date (UTC)07-Feb-2012
Time (UTC)06:06
PlatformNot Applicable
File nameX86_microsoft-windows-robocopy_31bf3856ad364e35_6.1.7601.21917_none_c99b3cc763c13908.manifest
File versionNot Applicable
File size2,586
Date (UTC)07-Feb-2012
Time (UTC)06:40
PlatformNot Applicable
Additional files for all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
File nameAmd64_microsoft-windows-ntfs_31bf3856ad364e35_6.1.7600.21146_none_031bdbaf4f990bc3.manifest
File versionNot Applicable
File size14,514
Date (UTC)07-Feb-2012
Time (UTC)06:59
PlatformNot Applicable
File nameAmd64_microsoft-windows-ntfs_31bf3856ad364e35_6.1.7601.21917_none_0523d2874ca60718.manifest
File versionNot Applicable
File size14,514
Date (UTC)07-Feb-2012
Time (UTC)07:35
PlatformNot Applicable
File nameAmd64_microsoft-windows-robocopy_31bf3856ad364e35_6.1.7600.21146_none_23b1e1731f11aee9.manifest
File versionNot Applicable
File size2,590
Date (UTC)07-Feb-2012
Time (UTC)06:57
PlatformNot Applicable
File nameAmd64_microsoft-windows-robocopy_31bf3856ad364e35_6.1.7601.21917_none_25b9d84b1c1eaa3e.manifest
File versionNot Applicable
File size2,590
Date (UTC)07-Feb-2012
Time (UTC)07:33
PlatformNot Applicable
File nameX86_microsoft-windows-robocopy_31bf3856ad364e35_6.1.7600.21146_none_c79345ef66b43db3.manifest
File versionNot Applicable
File size2,586
Date (UTC)07-Feb-2012
Time (UTC)06:06
PlatformNot Applicable
File nameX86_microsoft-windows-robocopy_31bf3856ad364e35_6.1.7601.21917_none_c99b3cc763c13908.manifest
File versionNot Applicable
File size2,586
Date (UTC)07-Feb-2012
Time (UTC)06:40
PlatformNot Applicable
Additional files for all supported IA-64-based versions of Windows Server 2008 R2
File nameIa64_microsoft-windows-ntfs_31bf3856ad364e35_6.1.7600.21146_none_a6fee4219739a389.manifest
File versionNot Applicable
File size14,511
Date (UTC)07-Feb-2012
Time (UTC)07:01
PlatformNot Applicable
File nameIa64_microsoft-windows-ntfs_31bf3856ad364e35_6.1.7601.21917_none_a906daf994469ede.manifest
File versionNot Applicable
File size14,511
Date (UTC)07-Feb-2012
Time (UTC)07:32
PlatformNot Applicable
File nameIa64_microsoft-windows-robocopy_31bf3856ad364e35_6.1.7600.21146_none_c794e9e566b246af.manifest
File versionNot Applicable
File size2,588
Date (UTC)07-Feb-2012
Time (UTC)07:00
PlatformNot Applicable
File nameIa64_microsoft-windows-robocopy_31bf3856ad364e35_6.1.7601.21917_none_c99ce0bd63bf4204.manifest
File versionNot Applicable
File size2,588
Date (UTC)07-Feb-2012
Time (UTC)07:31
PlatformNot Applicable
File nameX86_microsoft-windows-robocopy_31bf3856ad364e35_6.1.7600.21146_none_c79345ef66b43db3.manifest
File versionNot Applicable
File size2,586
Date (UTC)07-Feb-2012
Time (UTC)06:06
PlatformNot Applicable
File nameX86_microsoft-windows-robocopy_31bf3856ad364e35_6.1.7601.21917_none_c99b3cc763c13908.manifest
File versionNot Applicable
File size2,586
Date (UTC)07-Feb-2012
Time (UTC)06:40
PlatformNot Applicable

↑ Back to the top


Keywords: kb, kbautohotfix, kbqfe, kbhotfixserver, kbfix, kbsurveynew, kbexpertiseinter

↑ Back to the top

Article Info
Article ID : 2646535
Revision : 1
Created on : 3/21/2017
Published on : 4/11/2012
Exists online : False
Views : 363