Using on-the-fly flags, copy between two providers of same type

What is the problem you are having with rclone?

I read the docs and found the "on-the-fly" flags which works great except when is two different type of providers (not local). At least I don't know how...

About on-the-fly flags I'm talking about: https://rclone.org/docs/#backend-path-to-dir

The below example works fine:
rclone --ftp-host="10.12.233.21" --ftp-pass="DwA3lG8Ng" --ftp-user="myuser" copy :ftp:/public_html/.htaccess :ftp:/myfolder/

But how can I copy one file from a FTP, to another (different) FTP using only on-the-fly flags?

What is your rclone version (output from rclone version)

rclone v1.52.0-031-gc4110780-beta

  • os/arch: linux/amd64
  • go version: go1.14.4

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Linux xps 5.4.0-33-generic #37-Ubuntu SMP Thu May 21 12:53:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

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

In this example is FTP, but could be anyone supported.

hello and welcome to the forum

that is a good question, i wish i had the answer to it.

You can't at the moment. You'll need to use a config.

I think I found how to do that using ENV vars: https://rclone.org/docs/#config-file

Found and marked as solution.

Yes you can do that. Env parameters are essentially a config so that would work. Using switches on the fly can only handle one.

Sorry, what means switches in that case?

I was saying that using flags you can only use one remote with the :___: syntax.

Got. Thank you.

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