Confused about rc parameters

What is the problem you are having with rclone?

Not exactly a problem, but a confusion.
Took me some back and forth until got rclone working inside openmediavault and docker.
Finally got docker working and showing rclone through gui. All very nice.
I'm doing sync to google drive (config solved and working OK also).
So far, all good and no issues.

Have create a shell script to run the backup (planning to run via cron or some funtion in omv still to be worked on).
The shell script uses "rc" to connect to the gui:
docker exec rclone rclone rc sync/sync _filter={"IncludeFrom":["/rclone-sync/include_mycloud.txt"]} srcFs="local:/data/mycloud" dstFs="gdrive:/mycloud" --rc-user=xxxx --rc-pass=xxxx _async=true -vv --checksum --delete-before --delete-excluded --transfers=1 --checkers=4 --contimeout=60s --timeout=300s --retries=3 --low-level-retries=10 --stats=1s --stats-file-name-length=0 --fast-list

This is working OK with no issues, but my question (and sorry for all this rant) is the mix of underscore commands (such _filter) together with the more standard double dahs (--checksum). Combination of both seems to be working OK or at least I'm not seeing any error. Are both OK to use? Any preferred one?

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

docker exec rclone rclone version
rclone v1.68.2

  • os/version: alpine 3.20.3 (64 bit)
  • os/kernel: 6.1.0-28-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.23.3
  • go/linking: static
  • go/tags: none

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

google drive (all OK. i can sync, mount, etc)

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

docker exec rclone rclone rc sync/sync _filter={\"IncludeFrom\":[\"/rclone-sync/include_mycloud.txt\"]} srcFs="local:/data/mycloud" dstFs="gdrive:/mycloud"  --rc-user=xxxx --rc-pass=xxxx _async=true -vv --checksum --delete-before --delete-excluded --transfers=1 --checkers=4 --contimeout=60s --timeout=300s --retries=3 --low-level-retries=10 --stats=1s --stats-file-name-length=0 --fast-list

This will work fine.

The --flags will be set for all RC calls whereas you can change the _filter for each RC call. That is the only difference.

So use whichever is more convenient for you within those constraints.

Thanks Nick, as always you're very responsive.
I've the suspicion both were OK as didn't had any (evident) error. Just wondering I was not creating any overlooked issue that could create problems long term.
Thanks.
Fine if you wish to close this topic.

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