'Exclude' syntax for Cloud Sync?

stualden

Explorer
Joined
Apr 11, 2015
Messages
80
I'm getting an error when backing up (push sync) using Cloud Sync to BackBlaze B2. Some portions are backing up fine, so I'm trying to narrow the scope of the backup to find the problem area. I thought I would use the Exclude feature to do that, but it doesn't seem to be excluding--when I browse online, the folders I wanted to exclude are still getting copied over.

Could someone please clarify the proper syntax for exclusion, just in case that's my problem? (I can't decipher the rclone documentation.)

Let's say I have a folder

/mnt/Foo

and it contains a folder

/mnt/Foo/Bar

and I want to exclude the Bar folder and everything in it (and beneath it). When push-syncing /mnt/Foo, what would I put on the exclude line? None of the naively "obvious" alternatives work - e.g.,

Bar
Bar/
/mnt/Foo/Bar
/mnt/Foo/Bar/

None of these seems to work. What is the secret syntax???

Thanks,

--Stu
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
Bar/** or some variant thereof would be the choice as per the rclone docs.
 

stualden

Explorer
Joined
Apr 11, 2015
Messages
80
Thank you! A single too-long filename was causing the cloud sync crash.
 

Liquid3564

Cadet
Joined
Jun 19, 2023
Messages
8
Bar/** or some variant thereof would be the choice as per the rclone docs.
Hey, sorry for reviving a very old post. But I have a question. Would /mnt/Foo/Bar/** have the same effect?

And what if the file structure looked like this:
/mnt
/Foo​
/Bar​
/Baz​
/Bar​

Would
Code:
Bar/**
then exclude everything in /mnt/Foo/Bar/ AND /mnt/Baz/Bar/ ?

Again sorry for reviving this old post, I just can't seem to understand how this exactly works.
 
Top