You would use the /XA:[RASHCNETO]
or /XF
switches to exclude files with specifics attributes.
- For example:
/XF *.sasb7dat
- Also see
RoboCopy /?
, SS64, TechNet Wiki, or TechNet
- Also see
One could also use the min/max exclusion switches.
- For example:
- Size:
/MAX:n - MAXimum file size - exclude files bigger than n bytes
/MIN:n - MINimum file size - exclude files smaller than n bytes
- Age:
/MAXAGE:n - MAXimum file AGE - exclude files older than n days/date
/MINAGE:n - MINimum file AGE - exclude files newer than n days/date
- Access:
/MAXLAD:n - MAXimum Last Access Date - exclude files unused since n
/MINLAD:n - MINimum Last Access Date - exclude files used since n
- Size: