Hello
I want to copy all the folders starting with the letter C and keep the tree in the destination example
SOURCE :c:\A1
\A2
\A3
\C1
\C2
\C3
DEST: \C1
\C2
\C3
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
ncw
(Nick Craig-Wood)
2
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
ncw
(Nick Craig-Wood)
4
Note that I wrote /
(not \
) in the --include
statement - all filtering stuff works on unix like paths.
1 Like