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.
https://rclone.org/docs/#environment-variables
I use on Linux:
# RClone Config file
RCLONE_CONFIG=/opt/rclone/rclone.conf
export RCLONE_CONFIG
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
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%
%thestigma%
C:\WINDOWS\system32>set thestigma
Environment variable thestigma not defined
C:\WINDOWS\system32>set t
TEMP=C:\Users\user01\AppData\Local\Temp
TMP=C:\Users\user01\AppData\Local\Temp
but if you open a new cmd, and type
C:\WINDOWS\system32>echo %thestigma%
trouble
C:\WINDOWS\system32>set t
TEMP=C:\Users\user01\AppData\Local\Temp
thestigma=trouble
TMP=C:\Users\user01\AppData\Local\Temp
thank you
Alternatively, if you prefer a flag to a env. variable:
add this:
--config="C:\data\rclone\scripts\rclone.conf"
(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.