How do I authenticate rclone via environment variables?

What is the problem you are having with rclone

I want to use rclone with credentials passed to it via environment variables. I am unable to find this in the documentation.

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

rclone v1.65.0

  • os/version: darwin 12.7.2 (64 bit)
  • os/kernel: 21.6.0 (x86_64)
  • os/type: darwin
  • os/arch: amd64
  • go/version: go1.21.5
  • go/linking: dynamic
  • go/tags: noselfupdate

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

B2

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

rclone purge MyDestination:/SubName 

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[MyDestination]
type = b2
account = XXX
key = XXX
hard_delete = true

A log from the command that you were trying to run with the -vv flag

Not applicable. The command works when using the config file, I just want to use account and key via environment variables

welcome to the forum,

https://rclone.org/docs/#environment-variables

yes, my backup script does that.
the benefit, no need for the rclone config file.

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