Rclone rc copy remote help

i want use copy my script:::

rclone rc operations/copyfile srcFs="Test_Upload1:" dstFs="Test_Upload2:" -vv --max-transfer=650G --transfers=1 --fast-list --size-only

get error

2020/01/08 09:17:14 DEBUG : rclone: Version "v1.50.2-099-g69ac04fe-beta" starting with parameters ["rclone" "rc" "operations/copyfile" "srcFs=Test_Upload1:" "dstFs=Test_Upload2:" "-vv" "--max-transfer=650G" "--transfers=1" "--fast-list" "--size-only"]
2020/01/08 09:17:14 Failed to rc: Failed to read rc response: 401 Unauthorized: Unauthorized

You need to set some auth on the rclone serving the API (eg with --rc-user / --rc-pass) or use the --rc-no-auth flag to use copyfile.

1 Like

Don't work

I try script

rclone rc operations/copyfile srcFs="Test_Upload1:" dstFs="Test_Upload2:" -vv --max-transfer=650G --transfers=1 --fast-list --size-only --dry-run --rc-user=user --rc-pass=pass

log

2020/01/09 07:25:15 DEBUG : rclone: Version "v1.50.2-099-g69ac04fe-beta" starting with parameters ["rclone" "rc" "operations/copyfile" "srcFs=Test_Upload1:" "dstFs=Test_Upload2:" "-vv" "--max-transfer=650G" "--transfers=1" "--fast-list" "--size-only" "--dry-run" "--rc-user=user" "--rc-pass=pass"] 2020/01/09 07:25:15 Failed to rc: Failed to read rc response: 400 Bad Request: { "error": "Didn't find key "srcRemote" in input",
"input": {
"dstFs": "Test_Upload2:",
"srcFs": "Test_Upload1:" },
"path": "operations/copyfile", "status": 400 }

As specified in https://rclone.org/rc/#operations/copyfile, you also need to specify the source & destination file too, not only the source & destination remotes.

In case you are looking to copy the whole remote, you need to use the sync/copy command: https://rclone.org/rc/#sync/copy

1 Like

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