What options can be added to the rclone.conf file?

What is the problem you are having with rclone?

No problem, it's a great tool!

I was just wondering what options can be put in the rclone.conf file?
Can all the --options from the rclone bin be added to the conf file? (changing the - with _?)

For instance, I would like to add a log file like /var/log/rclone/rclone.log, can I just add
log = /var/log/rclone/rclone.log
to the rclone.conf file? (after giving the right ACL to the /var/log/rclone dir)

What is your rclone version (output from rclone version)

rclone v1.57.0

  • os/version: ubuntu 20.04 (64 bit)
  • os/kernel: 5.4.0-91-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17.2
  • go/linking: static
  • go/tags: none

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

Google Drive

The rclone config contents with secrets removed.

type = drive
client_id = myID
client_secret = mySecret
scope = drive
token = {"access_token":"myToken","token_type":"Bearer","refresh_token":"1//x","expiry":"2022..."}
team_drive = 

Welcome to the forum!

Only backend flags can be added to the config file. Non-backend flags such as --log-file cannot currently, but it is being considered (as well as some other more advanced extensions to the config system, such as includes).

One possible solution is to use environment variables to set flags globally, or use shell script wrappers which sets environment variables and/or adds command-line arguments for different use cases.

1 Like

Thanks for the prompt and relevant reply.

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