Sync copies everything

Also, this is the only file present in the bucket after running test.sh:

$ rclone lsl scaleway:klingtnet-rclone-test-bucket
        0 2021-07-10 11:29:40.040607324 testfileglacier

Sorry, there is still an issue with the assumptions/prerequisites:

I suggest you place the above command in the beginning of your script and make sure it displays the file in the subfolder.

When that is OK then check that this also gives the expected output:

The ls command was at the beginning of my script:

$ bash -x test.sh
+ ls -al rclone ./rclone
+ grep README.md
-rw-r--r--  1 alinz alinz    6361 Jul 10 11:25 README.md
-rw-r--r--  1 alinz alinz    6361 Jul 10 11:25 README.md
...

It looks a bit weird because of the bash -x flag, though.

Not quite, I would like to see the command exactly like I typed it

$ ls -al ./rclone/README.md
-rw-r--r-- 1 alinz alinz 6361 Jul 10 11:25 ./rclone/README.md

Here's how my working directory looks like, including the root of ./rclone:

$ find . -maxdepth 2
./test.sh
./rclone
./rclone/vfs
./rclone/rclone.go
./rclone/rclone.1
./rclone/notes.txt
./rclone/librclone
./rclone/lib
./rclone/graphics
./rclone/go.sum
./rclone/go.mod
./rclone/fstest
./rclone/fs
./rclone/docs
./rclone/contrib
./rclone/cmdtest
./rclone/cmd
./rclone/bin
./rclone/backend
./rclone/VERSION
./rclone/RELEASE.md
./rclone/README.md
./rclone/Makefile
./rclone/MANUAL.txt
./rclone/MANUAL.md
./rclone/MANUAL.html
./rclone/MAINTAINERS.md
./rclone/Dockerfile
./rclone/COPYING
./rclone/CONTRIBUTING.md
./rclone/.golangci.yml
./rclone/.gitignore
./rclone/.github
./rclone/.gitattributes
./rclone/.git

Thanks, any idea why the modification time changed since post 15?

Yes, I execute this inside a temporary directory and since I rebooted my computer since the last time I needed to clone rclone again.

OK, let's see how far we get. We may be a need for a more stable test environment.

Now let's try this (executed as single command like your ls - no script):

rclone lsl ./rclone --include=”/README.md”
$ rclone lsl ./rclone --include=”/README.md”

just prints nothing.

Strange, try this:

rclone lsd ./rclone
$ rclone lsd ./rclone 
          -1 2021-07-10 11:25:42        -1 .git
          -1 2021-07-10 11:25:42        -1 .github
          -1 2021-07-10 11:25:42        -1 backend
          -1 2021-07-10 11:25:42        -1 bin
          -1 2021-07-10 11:25:42        -1 cmd
          -1 2021-07-10 11:25:42        -1 cmdtest
          -1 2021-07-10 11:25:42        -1 contrib
          -1 2021-07-10 11:25:42        -1 docs
          -1 2021-07-10 11:25:42        -1 fs
          -1 2021-07-10 11:25:42        -1 fstest
          -1 2021-07-10 11:25:42        -1 graphics
          -1 2021-07-10 11:25:42        -1 lib
          -1 2021-07-10 11:25:42        -1 librclone
          -1 2021-07-10 11:25:42        -1 vfs

That's as expected, now try:

rclone lsl ./rclone --include="README.md"
$ rclone lsl ./rclone --include="README.md"
     6361 2021-07-10 11:25:42.529905208 README.md
     3765 2021-07-10 11:25:42.556572143 docs/README.md
     3119 2021-07-10 11:25:42.636572943 librclone/README.md
      167 2021-07-10 11:25:42.629906211 graphics/logo/README.md
     1063 2021-07-10 11:25:42.586572442 fstest/testserver/init.d/README.md
      929 2021-07-10 11:25:42.586572442 fstest/testserver/images/test-hdfs/README.md
      346 2021-07-10 11:25:42.586572442 fstest/testserver/images/test-sftp-openssh/README.md
      853 2021-07-10 11:25:42.583239076 fs/rc/js/README.md

Looks good, lets try

rclone lsl ./rclone --include="RELEASE.md"
$ rclone lsl ./rclone --include="RELEASE.md"
     3370 2021-07-10 11:25:42.529905208 RELEASE.md
rclone lsl scaleway:klingtnet-rclone-test-bucket
rclone lsl scaleway:klingtnet-rclone-test-bucket --include="RELEASE.md"
$ rclone lsl scaleway:klingtnet-rclone-test-bucket
        0 2021-07-10 11:29:40.040607324 testfileglacier
$ rclone lsl scaleway:klingtnet-rclone-test-bucket --include="RELEASE.md"

Perfect, now the fun begins:

rclone copy ./rclone scaleway:klingtnet-rclone-test-bucket --include="RELEASE.md"  --log-level=INFO
$ rclone copy ./rclone scaleway:klingtnet-rclone-test-bucket --include="RELEASE.md"  --log-level=INFO
<6>INFO  : RELEASE.md: Copied (new)
<6>INFO  :
Transferred:        3.291k / 3.291 kBytes, 100%, 8.154 kBytes/s, ETA 0s
Transferred:            1 / 1, 100%
Elapsed time:         0.7s
rclone lsl scaleway:klingtnet-rclone-test-bucket --include="RELEASE.md"
rclone copy ./rclone scaleway:klingtnet-rclone-test-bucket --include="RELEASE.md"  --log-level=INFO
rclone lsl scaleway:klingtnet-rclone-test-bucket --include="RELEASE.md"