From xcopy /?
/EXCLUDE:file1[+file2][+file3]...
Specifies a list of files containing strings. Each string
should be in a separate line in the files. When any of the
strings match any part of the absolute path of the file to be
copied, that file will be excluded from being copied. For
example, specifying a string like \obj\ or .obj will exclude
all files underneath the directory obj or all files with the
.obj extension respectively.
But let's say that I want to EXCLUDE all .o files and INCLUDE all .odt files. If it was regex, I could use \.o$. But it's not, is it?
How do I do it?
(I'm not opposed to using rsync or something else, either.)