Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

docs: clarify --password-command quoting for a path with spaces

maximilize0e19ed565fab
diff --git a/docs/content/docs.md b/docs/content/docs.md
index 018f4bf87..df86d6bfa 100644
--- a/docs/content/docs.md
+++ b/docs/content/docs.md
@@ -2454,8 +2454,9 @@ setting the config password for the first time.
The argument to this should be a command with a space separated list
of arguments. If one of the arguments has a space in then enclose it
in `"`, if you want a literal `"` in an argument then enclose the
-argument in `"` and double the `"`. See [CSV encoding](https://godoc.org/encoding/csv)
-for more info.
+argument in `"` and double the `"`. This includes the command itself:
+if the path to the executable contains a space, it must be quoted too.
+See [CSV encoding](https://godoc.org/encoding/csv) for more info.
Eg
@@ -2463,6 +2464,7 @@ Eg
--password-command "echo hello"
--password-command 'echo "hello with space"'
--password-command 'echo "hello with ""quotes"" and space"'
+--password-command '"/path with a space/get-password.sh"'
```
Note that when changing the configuration password the environment