When using RoboCopy, there is a switch xd to avoid synchronizing a directory.
So, basically, I need to synchronize a directory but avoid one sub directory in it.
Something like this seems to be in effect:
\\10.0.0.1\h$\Software\ROBOCOPY \\10.0.0.1\h$\iis\www \\10.0.0.2\h$\iis\www /MIR /NP /xd app_data
I have a directory like this: \iis\www\app_data. So, I need to make sure to get the \iis\www branch but not the sub directory app_data.
This page gives an example:
http://ss64.com/nt/robocopy.htmlHowever, what I do not understand is there xd example is like this:
ROBOCOPY c:\source d:\dest /XF *.doc *.xls /XD c:\unwanted /S
So, in one command, they are trying to synchronize c:\Source but to exclude c:\unwanted which is not even under c:\source. This is highly confusing.
What is the proper syntax? Is the one I give for my example OK?