RoboCopy Of Data Excluding Multiple System Directories

1 comments
Sometimes we get a requirement to copy the complete volume to other file server and add it in DFSN and DFSR.

When you create a root folder of the volume on other server new volume which has lots of NTFS permissions. It gets difficult to copy the exact ACL on the folder of new volume. If we robocopy the entire volume then we ended up with some system folders which we don't want on our new volume, like $RECYCLE.BIN, System Volume Information and DFSR Private. Cleaning these folders are also time consuming.

You can use /xd filter in robocopy command to exclude all system folders which will reduce you work load while copying the data. Like below,