How copy folders starting with a specific letter?


I want to copy all the folders starting with the letter C and keep the tree in the destination example



I know how to do it with a line of script by folder … but is there possibility to do it in 1 line ( source: c:\c* ?? )

thanks you

You should be able to do this with

rclone copy --include "/C*/**" SOURCE: DEST

Test first with --dry-run

2018/04/12 09:30:36 Failed to load filters: bad glob pattern “C:\C**\**” (regexp “(^|/)C:\c.\[^/]*$”): error parsing regexp: invalid escape sequence: \G

Note that I wrote / (not \) in the --include statement - all filtering stuff works on unix like paths.

1 Like


I’ll try this night

1 Like