Trying to exclude most directories given within a directory, then including only some

What is the problem you are having with rclone?

I am trying to exclude most directories given within a directory, then including only some. I've seen a lot of questions like these, but none of them addressed my problem.

rclone version

rclone v1.64.0

  • os/version: ubuntu 24.04 (64 bit)
  • os/kernel: 6.8.0-51-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.1
  • go/linking: static
  • go/tags: none

I've tried it even with the latest version, with the very same results.

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

HTTP / HTTPS

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

rclone lsd --http-url "http://nycdn.netbsd.org/" -vv --filter '+ CHANGES*' --filter '+ README*' --filter '+ LAST_MINUTE*' --filter '+ amd64/**' --filter '+ i386/**' --filter '+ *arm**' --filter '- **' ":http:/pub/NetBSD-daily/HEAD/latest/" 

Config file

no config file created

A log from the command that you were trying to run with the -vv flag

2024/12/24 19:53:46 DEBUG : rclone: Version "v1.64.0" starting with parameters ["rclone" "lsd" "--http-url" "http://nycdn.netbsd.org/" "-vv" "--filter" "+ CHANGES*" "--filter" "+ README*" "--filter" "+ LAST_MINUTE*" "--filter" "+ amd64/**" "--filter" "+ i386/**" "--filter" "+ *arm**" "--filter" "- **" ":http:/pub/NetBSD-daily/HEAD/latest/"]
2024/12/24 19:53:46 DEBUG : Creating backend with remote ":http:/pub/NetBSD-daily/HEAD/latest/"
2024/12/24 19:53:46 NOTICE: Config file "/home/tps/.config/rclone/rclone.conf" not found - using defaults
2024/12/24 19:53:46 DEBUG : :http: detected overridden config - adding "{HoM49}" suffix to name
2024/12/24 19:53:46 DEBUG : Root: http://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/
2024/12/24 19:53:46 DEBUG : fs cache: renaming cache item ":http:/pub/NetBSD-daily/HEAD/latest/" to be canonical ":http{HoM49}:/pub/NetBSD-daily/HEAD/latest/"
          -1 2000-01-01 01:00:00        -1 amd64
          -1 2000-01-01 01:00:00        -1 evbarm-aarch64
          -1 2000-01-01 01:00:00        -1 evbarm-earmv6hf
          -1 2000-01-01 01:00:00        -1 evbarm-earmv7hf
          -1 2000-01-01 01:00:00        -1 evbppc
          -1 2000-01-01 01:00:00        -1 i386
          -1 2000-01-01 01:00:00        -1 images
          -1 2000-01-01 01:00:00        -1 macppc
          -1 2000-01-01 01:00:00        -1 shared
          -1 2000-01-01 01:00:00        -1 source
          -1 2000-01-01 01:00:00        -1 sparc
          -1 2000-01-01 01:00:00        -1 sparc64
2024/12/24 19:53:46 DEBUG : 18 go routines active

I'd awaited to see only:

          -1 2000-01-01 01:00:00        -1 amd64
          -1 2000-01-01 01:00:00        -1 evbarm-aarch64
          -1 2000-01-01 01:00:00        -1 evbarm-earmv6hf
          -1 2000-01-01 01:00:00        -1 evbarm-earmv7hf
          -1 2000-01-01 01:00:00        -1 i386
$ rclone lsf --http-url "http://nycdn.netbsd.org/" --filter '+ /CHANGES*' --filter '+ /README*' --filter '+ /LAST_MINUTE*' --filter '+ /amd64/' --filter '+ /i386/' --filter '+ /*arm?*/' --filter '- *' ":http:/pub/NetBSD-daily/HEAD/latest/"

CHANGES
CHANGES.prev
LAST_MINUTE
README.files
amd64/
evbarm-aarch64/
evbarm-aarch64eb/
evbarm-earmv5/
evbarm-earmv5eb/
evbarm-earmv5hf/
evbarm-earmv5hfeb/
evbarm-earmv6hf/
evbarm-earmv6hfeb/
evbarm-earmv7hf/
evbarm-earmv7hfeb/
i386/

use --dump filters flag to see how your filters are interpreted