More detailed information is available in the emc documentation.
#Emcopy vs robocopy windows#
It appears to force re-inheritance from parents which can create as many problems as it promises to fix.Įmcopy is just one of a handful of adjacent tools in the CIFS_Tools.zip pack, lgcopy can be used to migrate local groups from Windows to a CIFS Server so that emcopy’s /secfix switch can do it’s thing and there are other useful tools such as sharedup for copying CIFS shares from one NAS to another. Note I omitted the use of /secfix as in practice I found not using /secfix has less problems than using it. You may want to create the top level of folders first before adopting this technique to perform the subsequent folder structure creation and or file copy…įor /f “delims=” %%f in (‘dir S:\ /ad /b) DO emcopy.exe “s:\” “d:\root\” /s /xf * /create /r:1 /w:1 I have found issues using for loops with robocopy that may similarly affect emcopy whereby top level folders containing spaces still prove problematic despite the use of “delims=” in the for loop.įor /f “delims=” %%f in (‘dir S:\ /ad /b’) DO emcopy.exe “s:\%%f” “d:\%%f” *.* /nosec /a /o /s /i /de /c /th 16 /r:1 /w:1
I personally prefer to deal with each top level folder as a separate emcopy run, using a for loop as follows…
#Emcopy vs robocopy how to#
Working examples of emcopy commands below, with differences highlighted.Įmcopy_v4.14.exe “S:\My Source Folder” D:\My_Dest_Folder *.* /s /secfix /o /a /i /d /c /th 32 /r:5 /w:3Įmcopy_v4.14.exe “S:\My Source Folder” D:\My_Dest_Folder *.* /s /nosec /o /a /i /d /c /th 256 /r:5 /w:3Ī more elaborate example showing how to exclude multiple directories specified by full path or just as a nameĮmcopy_v4.14.exe “S:\My Source Folder” D:\My_Dest_Folder *.* /xd “System Volume Information” homedirs profiles wtsprofiles /s /secfix /o /a /i /d /c /th 32 /r:5 /w:3 In practice, emcopy vs robocopy – I have found it to be much faster than robocopy. It defaults to 64 threads but can be told to use up to 256 threads, massively speeding up copy operations. It allows you to back up the file and directory security-ACLs, owner information,Īnd audit information-from a source directory to a destination directory without copying NTFS partition, keeping security the same on the copy as on the original. The command syntax is much like robocopy so if you’re familar with that, then using emcopy will be easy.Įmcopy lets you copy a file or directory (and included subdirectories) from and to an Emc’s emcopy (part of emc’s rather elusive but freely downloadable if you can find it CIFS_Tools.zip package) is akin to Microsoft’s own robocopy, only faster with extra benefits.