Rclone exclude not excluding folders

Trying to run rclone from my unraid server to my NAS. I noticed its trying to copy folders I put in exclude. Why would it be trying to copy it?

Script:

rclone sync -v /mnt/user/backups/ NAS:adehaan86/unraidbkup/ --exclude β€œ/Older video/" --exclude "/Work/”

--exclude "/Work/**”

Dash dash. And two stars match deeper directory and files.

Is that 1 dash that you used? I do have the double astricks have there. but it did not show in post.

here is screenshot of what I have since I cant put that.

Dash dash. And two stars match deeper directory and files.

And the slash in front says to match from the root. So if these are in subdirs you need

"**/Work/**"

Directory kind of goes like this
A
B
C
BlueIRIS
>Older Video(sub directory)
D
E
F
Work
> directories(sub directory)

New script below

That looks right… Or you can do this

If you want to ensure its one deep.

"/*/Older Video/**" 

Or fully qualify it:

"/BlueIRIS/Older Video/**"

Awesome Thank you for your time. That works perfect!

1 Like