This is useful as part of a data migration to a new domain, where the security exported using SystemTools DumpACL can then be tweaked and reapplied to the new empty directory structure using icacls, prior to an emcopy of the data including files without security afterward. If you want to create a duplicate folder structure including ACL’s for subsequent re-ACL’ing using SetACL, leave out /nosec but don’t use /secfix. If you need to copy just the folder structure, but leave the old security behind, then this command works a treat. …especially if you want to exclude more than one folder, or are experiencing issues with timestamps when migrating to a NAS.Ĭopying an empty directory structure using emcopy More detailed information is available in the emc documentation.
![emcopy examples emcopy examples](https://docplayer.net/docs-images/60/44948875/images/1-0.png)
Emcopy examples 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
![emcopy examples emcopy examples](https://s3.manualzz.com/store/data/030313558_1-bc06b6900c753994c3d2e62b1b0ca415-360x466.png)
I personally prefer to deal with each top level folder as a separate emcopy run, using a for loop as follows…
Emcopy examples 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
![emcopy examples emcopy examples](https://image.slidesharecdn.com/h10777-vnx-cloud-appliance-wp-120718191743-phpapp02/95/vnx-with-the-cloud-tiering-appliance-13-728.jpg)
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.
![emcopy examples emcopy examples](https://2.bp.blogspot.com/-HHTW3pLzwuE/V3-RWId4F2I/AAAAAAAAAkQ/PZaojTk8aOQo90B2HGvdEOTBuQx0fnTBQCLcB/s1600/iso5.png)
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.