![emcopy help emcopy help](https://www.dumpsbase.com/freedumps/wp-content/uploads/2020/04/image004-22.jpg)
Need help and suggestions as to whether this is possible, and if it is then how can I do it. So what I want to do is somehow use the /xd switch to avoid purging those subdirectories at the destination.Īlso, in the above example, in the /xd switch, I'm using the "*" wildcard to mean that I want to include all the directories that fall under the "\\hq04t3fis202\archive\dr" root folder at the destination. And at the destination, once these directories are mirrored from the source, there is another script which dumps separate subdirectories within each of those directories. In the above example, there are several directories under \\hq04t2fis202\archive\dr that are being mirrored. Is there a way for me to use the /xd switch in robocopy wherein I'd be able to exclude the destination subdirectories.Įxample: robocopy "\\hq04t2fis202\archive\dr" "\\hq04t3fis202\archive\dr" /mir /xd "\\hq04t3fis202\archive\dr\*\hq04s2dba301" They are standalone subdirectories and I don't want them purged once the mirroring kicks in. The problem is that now there are going to be subdirectories within those folders at the destination which are not part of the original mirroring script. There is a script running which mirrors a bunch of folders from one volume to another.