Rclone exclude multiple folders under windows

Hi All, newbie here, I want to prevent rclone from trying to sync the “recycle bin” and “system volume information” folders however I cannot seem to get it to work, I have tried /** and ** at the end of the paths but I think this only works under linux, the command I am using is:

rclone sync h:\ remote:/ --exclude {“H:\System Volume Information”, “H:$RECYCLE.BIN”}

messages I’m getting:

2018/12/21 09:59:42 ERROR : $RECYCLE.BIN/S-1-5-21-1189960099-4246919981-3985802815-500: error reading source directory: failed to open directory “$RECYCLE.BIN/S-1-5-21-1189960099-4246919981-3985802815-500”: open \?\h:$RECYCLE.BIN\S-1
-5-21-1189960099-4246919981-3985802815-500: Access is denied.
2018/12/21 09:59:49 ERROR : $RECYCLE.BIN/S-1-5-21-1189960099-4246919981-3985802815-6379: error reading source directory: failed to open directory “$RECYCLE.BIN/S-1-5-21-1189960099-4246919981-3985802815-6379”: open \?\h:$RECYCLE.BIN\S
-1-5-21-1189960099-4246919981-3985802815-6379: Access is denied.

The --exclude paths need to be rooted at the root of the sync, and be in unix slash format, so I think you want

--exclude "/System Volume Information/**" --exclude "/$RECYCLE.BIN/**"
1 Like

Thanks a lot, that worked perfectly!

1 Like