You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmd/config: option to read password from external command #2346
When setting up a new WebDAV remote, I am being asked:
Password.
y) Yes type in my own password
g) Generate random password
n) No leave this optional password blank
I would like an option to "read password from external command". That would allow me to specify pass my-web-server as the external command and have rclone retrieve the password from pass.
What is your rclone version (eg output from rclone -V)
rclone v1.41
- os/arch: linux/amd64
- go version: go1.10.1
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Linux 4.16 x86_64
Which cloud storage system are you using? (eg Google Drive)
WebDAV / NextCloud
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone config
A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)
changed the title [-]WebDAV: Support for reading password from external command[/-][+]Support for reading password from external command[/+]on Jun 10, 2018
changed the title [-]Support for reading password from external command[/-][+]cmd/config: option to read password from external command[/+]on Mar 17, 2021
Activity
[-]WebDAV: Support for reading password from external command[/-][+]Support for reading password from external command[/+]ncw commentedon Jun 10, 2018
Interesting idea...
What you could do is set an environment variable for the password. Let's say your webdav remote is called `mywebdav".
You can set the password in the environment something like this...
export RCLONE_CONFIG_MYWEBDAV_PASS=$(rclone obscure $(pass my-web-server))
[-]Support for reading password from external command[/-][+]cmd/config: option to read password from external command[/+]