How to change rclone config location (windows)

can we change rclone config location like D:\rclone\rclone.conf

Yes, you can set an environment variable and point it to the location you want.

I use on Linux:

# RClone Config file

on windows,

if you want to set the variable inside a batch file or on the command line,
the variable is valid only inside the batch file or current command line.

set RCLONE_CONFIG=C:\data\rclone\scripts\rclone.conf

to set environment variables permanently

setx RCLONE_CONFIG=C:\data\rclone\scripts\rclone.conf

1 Like

Somewhat related to the subject - do you know how to list all the permanent variables?
Do they show up under "environment variables" in system properties (alongside stuff like %temp% ?
I've rarely used permanent variables, but it does actually seem like a useful way to set some defaults that I had not yet considered.

yes, i understand, and the first time i used setx, i was most confused.

if you try this, it will in fact set the variable but will not work display the variable

C:\WINDOWS\system32>setx thestigma trouble
SUCCESS: Specified value was saved.
C:\WINDOWS\system32>echo %thestigma%
C:\WINDOWS\system32>set thestigma
Environment variable thestigma not defined
C:\WINDOWS\system32>set t

but if you open a new cmd, and type

C:\WINDOWS\system32>echo %thestigma%
C:\WINDOWS\system32>set t

thank you :slight_smile:

Alternatively, if you prefer a flag to a env. variable:
add this:
(as an example)

rclone config file can be used to check real quick which file rclone is actually using.

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