Rclone config file

What is the problem you are having with rclone?

Trying to config rclone programmatically

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

- os/version: debian 11.5 (64 bit)
- os/kernel: 5.10.0-19-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.8
- go/linking: static
- go/tags: none
No , it's the 1.58

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

Storj

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

Paste command here

The rclone config contents with secrets removed.

[waterbear]
type = storj
access_grant = 1.....

A log from the command with the -vv flag

<7>DEBUG : rclone: Version "v1.58.0" starting with parameters ["rclone" "version" "-vv"]
<7>DEBUG : rclone: systemd logging support activated
rclone v1.58.0
- os/version: debian 11.5 (64 bit)
- os/kernel: 5.10.0-19-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.8
- go/linking: static
- go/tags: none
<7>DEBUG : rclone: Version "v1.58.0" finishing with parameters ["rclone" "version" "-vv"]

Hello

I need to switch rclone on different storj account programatically
It's enough to create a config file programmatically like this:

[waterbear]
type = storj
access_grant = 1.....

and restart rclone ?

Thank you

hello and welcome to the forum,

yes, that will work. tho in certains cases, like passwords, rclone might expect the password to be obscured

other options are:
--- https://rclone.org/commands/rclone_config_create/

--- https://rclone.org/docs/#connection-strings
create a on-the-fly remote

--- use environment variables

export RCLONE_CONFIG_GDRIVESAC_TYPE=drive
export RCLONE_CONFIG_GDRIVESAC_SCOPE_=DRIVE
export RCLONE_CONFIG_GDRIVESAC_SERVICE_ACCOUNT_FILE=/path/to/gdrivesa.json

rclone lsd GDRIVESAC:
1 Like

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