Exclude subfolders and its files

What is the problem you are having with rclone?

Good morning,
Currently I use this command to exclude subfolders and its files:

 "C:\Program Files\rclone-v1.62.2-windows-amd64\rclone.exe" copy -P --include "/*.*" --exclude "**/" uptobox:test2 uptobox:test

But Rclone gives me this error:

ERROR : Using --filter is recommended instead of both --include and --exclude as the order they are parsed in is indeterminate

How to handle this with --filter?

Run the command 'rclone version' and share the full output of the command.

C:\Program Files\rclone-v1.62.2-windows-amd64>rclone version
rclone v1.62.2

  • os/version: Microsoft Windows 10 Pro 21H2 (64 bit)
  • os/kernel: 10.0.19044.1645 Build 19044.1645.1645 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.20.2
  • go/linking: static
  • go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

-SFTP
-Uptobox

The command you were trying to run (eg rclone copy /tmp remote:tmp)

"C:\Program Files\rclone-v1.62.2-windows-amd64\rclone.exe" copy -P --include "/*.*" --exclude "**/" uptobox:test2 uptobox:test

Thank for help

puy your rules into a file e.g. filter.txt

+ /*.*
- **/

and then use --filter-from filter.txt in your command.

Use --dry-run to test your rules.

All details here:

Thanks for the quick help, it works fine thanks!
Thank you for the details, I had read them but I still have a little trouble understanding

1 Like

Yeah me too - the best way it to experiment with --dry-run -vv:slight_smile:

I knew --dry-run but what is the -vv for?

super verbose output:) -v is just verbose

You will see all details not just summary. Try

1 Like

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