sorry, i do not understand your question.
you should try it yourself, see what happens and if need be ask your question after testing.
there is an ancient jewish proverb that
a good question is half the answer
sorry, i do not understand your question.
you should try it yourself, see what happens and if need be ask your question after testing.
there is an ancient jewish proverb that
a good question is half the answer
Sorry What i mean is:
hi all
i new in this forum and i just start to "play" with Rclone
my need is to mount swift storage and i got into the same issue of storing my password
i didnt understand what is the final solution for this
so if someone can put a short explanation and "how to " will be also great
of how i solve this problem of not putting my pass in txt file
and that rclone mount can still work using encrypted files
set RCLONE_CONFIG_PASS
and then run rclone.exe. the system only remembers the config password inside the batch file.set RCLONE_CONFIG_PASS=put.your.password.here
rclone.exe config dump
pause
i will help if i figure this out but im apparently to stupid
Well i most be dumb cause i cant get the environment variable to work.
I didnt do the .bat but i tried manually and it seems that "SET RCLONE_CONFIG_PASS=XXXX" indeed sets that variable, as i can see with ECHO %RCLONE_CONFIG_PASS%.
But even though i after that, in the same cmd-window then try to "rclone mount remote:path windowspath" it doesnt mount.
Do i need to do steps before "SET RCLONE_CONFIG_PASS" ? I tried making a user environment variable in windows but im not sure what to type, i used "RCLONE_CONFIG_PASS" as name and "RCLONE_CONFIG_PASS" and Value (cause i dont know what else to do).
And the SET-command changes the value temporarily anyway right?
The only way i got it to mount is using nssm and making a process with the mountcommand, and that only works without as password.
edit: ok so my problem might be that "rclone.exe mount" command doesnt work regardless, it says rclone service started but it does nothing, even without config pass, hmmmmmmmm?
you are complicating the situtation.
yeah maybe i am, the batchfile works with
SET RCLONE_CONFIG_PASS
rclone.exe whatever command
PAUSE
But when i try to mount it just says: The service rclone has been started.
log-level DEBUG says no errors either, but it doesnt mount.. (even without config password set)
@ncw is correct, the way to protect the rclone password is with multiple layers of obfuscation.
i tend to run paranoid and here is my solution.
i script rclone with python.
i have 300+ lines of code for all my backup needs including fastcopy for copying files, 7zip for compression and rclone for cloud.
this issue of password protection applies to both 7zip and rclone.
tho i use this technique for many other use cases including net share
for rclone, i encrypt two things, the rclone password and the script that runs rclone:
encrypt the rclone password and save it somewhere. i use a .ini file.
[rclone]
p=75D22D57
i have .cmd file that runs rclone for example, let's call it doit.cmd
rclone.exe config dump
now both the rclone password is encrypted and the batch file is encrypted
using python i do that following
RCLONE_CONFIG_PASS is passed to rclone as an environment variable instead of set RCLONE_CONFIG_PASS=password
, there is no way to see the password inside the temp batch file.
doit-encrypted.cmd cannot be modified to obtain the rclone password; as each time the python script is executed, the file doit-encrypted.cmd is: