How to add any global flag option to rc sync/copy

What is the problem you are having with rclone?

Rclone RC HTTP API options, how are they parsed?

What is your rclone version (output from rclone version)

rclone v1.56.2

  • os/version: ubuntu 20.04 (64 bit)
  • os/kernel: 5.10.28-Unraid (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.16.8
  • go/linking: static
  • go/tags: none

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

Google Drive

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

rclone rcd --rc-no-auth --rc-addr :5572 --rc-serve

Using insomnia:
POST 127.0.0.1:5572/sync/move

{
	"srcFs": "/media/pictures",
	"dstFs": "gdrive-crypt-media:/pictures",
	"_async": true,
	"_config": {
		"LogLevel": "INFO",
		"DriveStopOnUploadLimit": true,
		"CutOffMode": "SOFT",
		"FastList": true,
		"DryRun": false,
		"MaxDuration": 30000000000
	},
	"_filter": {
		"MinAge": "6h"
	},
	"_log": {
		"File": "/var/log/rclone/upload-copy.log"
	}
}

The rclone config contents with secrets removed.

No need, rclone move etc works fine

A log from the command with the -vv flag

No errors.

My question is why it appears the options i.e. CutOffMode are not parsed. There are some options I want to use that are not listed when running options/get.
It would be fine by me if I can get accurate stats from a core/command, but I can't get that one going and I think core/move would be much nicer.

Is it possible to use sync/move with any of the global flags?

Also the _log: File which is listed in options/get does not write the log file at the specified path.

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