How to mount with command line arguments only?

What is the problem you are having with rclone?

I would love to mount rclone via command line arguments or even environment variables only but I don't know how to do that.

But from what I understand, you have to reference a name of the configuration like this:

rclone mount MyConfigName:/foo /bar

And I don't have a name without a configuration.

What is your rclone version

I'm using 1.51.0 from Docker hub.

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

Well, it seems that its running in Alpine.

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

Doesn't matter here. But it seems that cloud storages have ENV and CLI variables (i.e. RCLONE_OPENDRIVE_USERNAME / --opendrive-username, RCLONE_SFTP_USER/--sftp-user, RCLONE_MEGA_USER/--mega-user etc).
So I guess there must be some equivalent for referencing the mount path, too.

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

That's actually what I want to know.

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

See above.

hello and welcome to the forum,

if there a reason you do not want to create a config file?

if you want to use enviroment variables, you can do that.

rclone lsd :s3:bucket/folder --s3-access-key-id=id --s3-secret-access-key=secret

what cloud provider do you plan to use?
note the leading : in :s3:bucket/folder, you change that to the type of backend you are using.
for example, google drive would be :drive:bucket/folder

Check out creating remotes on the fly section of the docs:

Here is a working example

Mount the rclone download server on /mnt/tmp

rclone mount --http-url :http: /mnt/tmp/


$ ls /mnt/tmp/   v0.96  v1.07  v1.18  v1.29  v1.40    v1.49.1  rclone-current-linux-arm.deb     v0.97  v1.08  v1.19  v1.30  v1.41    v1.49.2    rclone-current-linux-arm.rpm    v0.98  v1.09  v1.20  v1.31  v1.42    v1.49.3
rclone-current-linux-386.deb  v0.99  v1.10  v1.21  v1.32  v1.43    v1.49.4
rclone-current-linux-386.rpm      rclone-current-linux-mips.deb        v1.00  v1.11  v1.22  v1.33  v1.43.1  v1.49.5      rclone-current-linux-mipsle.deb      v1.01  v1.12  v1.23  v1.34  v1.44    v1.50.0
rclone-current-linux-amd64.deb    rclone-current-linux-mipsle.rpm      v1.02  v1.13  v1.24  v1.35  v1.45    v1.50.1
rclone-current-linux-amd64.rpm    v1.03  v1.14  v1.25  v1.36  v1.46    v1.50.2    rclone-current-linux-mips.rpm  v1.04  v1.15  v1.26  v1.37  v1.47.0  v1.51.0
rclone-current-linux-arm64.deb    v1.05  v1.16  v1.27  v1.38  v1.48.0  version.txt
rclone-current-linux-arm64.rpm  v1.06  v1.17  v1.28  v1.39  v1.49.0

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