Rclone scans unwanted folder

What is the problem you are having with rclone?

Rclone scans unwanted folder theat is not configured to be scanned

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

rclone v1.60.1

  • os/version: darwin 13.0.1 (64 bit)
  • os/kernel: 22.1.0 (arm64)
  • os/type: darwin
  • os/arch: arm64
  • go/version: go1.19.3
  • go/linking: dynamic
  • go/tags: cmount

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

Local sync to SMB drive

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

rclone sync ~ /Volumes/Kingston-2TB --include='/{data/Go,stack/Gitea}/**' --delete-during -v -P --modify-window 15s --no-update-modtime --transfers=5 --checkers=50 --ignore-size --links -vv

The rclone config contents with secrets removed.

no config in use

A log from the command with the -vv flag

2022-11-30 09:45:07 ERROR : Documents/Library: failed to open directory "Documents/Library": open ~/Documents/Library: permission denied
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Errors:                 3 (no need to retry)
Checks:                 6 / 6, 100%
Elapsed time:         0.1s

What's happening here is that rclone doesn't understand the {data/Go,stack/Gitea} part well enough to include it in directory filters so rclone is showing all directories. It won't be showing the files except in the places you asked for.

You can fix this by splitting into two includes

--include='/data/Go/**' --include='/stack/Gitea/**'

Or like this (which matches more than your original but may be good enough

--include='/{data,stack}/{Go,Gitea}/**'

Putting the / in the {} causes rclone not to be able to apply the directory filters

Maybe rclone should issue a warning, or a debug in this case?

A message would be nice, yes. Thanks for the help. will fix it with having 2 includes.

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

I've merged a log message (at INFO level) for this this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.62