So I did a rather big sync to an offsite encrypted b2 bucket and after it completed I realized that I should have excluded some folders. I changed my script to --exclude those (and it appears like it would work). Since it looks like the rclone sync with the --exclude is not deleting these files from the remote (but also not uploading those), I tried to manually delete/purge these folders. Because I don't want to accidentally delete files, I want to double check what it would delete, using the --dry-run command. But I am struggling to get it to show me what it would delete.
This is what I run (trying to delete .foo folders):
$ rclone --dry-run purge 'encrypted-backup:.foo/'
2019/08/14 18:24:19 NOTICE: Encrypted drive 'encrypted-backup:.foo/': Not purging as --dry-run set
I know there are lots of .foo folders, because they show up when I do an rclone ls. I haven't been able to figure out what I'm doing wrong, am I running into a bug maybe?
Indeed, specifying "" (root) as the path and then using the pattern match in --include instead did the trick. I actually read that page and couldn't get it to work, but I believe it was because I was missing the **/ before .foo, so it would have only worked if there was a .foo directory right in the root directory (which in my case there isn't).