Folder filtering assistance

Hello all,
Trying to figure out the correct syntax for filter includes. What I'm trying to do is setup a sync/copy from a source remote to a destination remote. The source folder has a ton of folders in it. I would like to break up the job into several smaller jobs and have it run in alphabetical order (not exactly alphabetical, each job may not go 0-1, a-f, g-m, etc., but they would be grouped that way.)

Looking at the rclone filtering wiki, it's not clear, at least to me, if the wildcard and/or regex options and such can be used for folder names, or if those are only for files. An example of what I'm trying to do is:

rclone copy source: remote: --include [0-9]**/**
where as this job would only copy folders beginning with 0, 1, 2, 3, 4, 5, 6, 7, 8 or 9, and whatever content exists within the folders regardless of naming (understanding that there are nested folders, it will continue to respect the filter, but in my case there are no nested folders.)

Is this possible? If it's already documented, please just point me in the right direction/to the doc. Not trying to reivent the wheel. My searches on this topic haven't yielded results yet but maybe I'm searching for the wrong terms (wildcard, filter, folders, include, exclude, if various combinations.)
Thank you in advance!
-Ed

hi,
--dry-run - this flags lets you test your command without copying files.
so you can experiment.

That should work. Here's a simple test.

root@cloudc:~# rclone lsl z 
        0 2020-05-11 13:14:18.756260479 a/file.txt
        0 2020-05-11 13:14:21.936313490 b/file.txt
        0 2020-05-11 13:14:15.736210136 2/file.txt
        0 2020-05-11 13:14:12.544156925 1/file.txt

root@cloudc:~# rclone lsl z --include "/[0-9]**/**"
        0 2020-05-11 13:14:12.544156925 1/file.txt
        0 2020-05-11 13:14:15.736210136 2/file.txt

Thank you! Much appreciated.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.