Copy folders with specific string

Hello everyone, I realy need your help.

I would like to use rclone to copy folders with specific string in their name, from drive A to drive B.
I have to mention that i want to do that recursivly because their are many subdirectories.

How could i do that ?

Hi Amine,

You can use filtering:
https://rclone.org/docs/#filtering
https://rclone.org/filtering/

Thanks for the quick answer
How can i filter only folder namme the file name?

I suggest you carefully read the docs and then try out the filter concept with some examples. E.g.

rclone lsl A: --include "**/*specific-string*/**"

Next you can try:

rclone copy A: B: --include "**/*specific-string*/**" --dry-run -v

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