rclone/cmd
Ole Frost 58c99427b3 config: fixed issues with flags/options set by environment vars.
Some environment variables didn’t behave like their corresponding
command line flags. The affected flags were --stats, --log-level,
--separator, --multi-tread-streams, --rc-addr, --rc-user and --rc-pass.
Example:

    RCLONE_STATS='10s'
    rclone check remote: remote: --progress
    # Expected: rclone check remote: remote: --progress –-stats=10s
    # Actual: rclone check remote: remote: --progress

Remote specific options set by environment variables was overruled by
less specific backend options set by environment variables. Example:

    RCLONE_DRIVE_USE_TRASH='false'
    RCLONE_CONFIG_MYDRIVE_USE_TRASH='true'
    rclone deletefile myDrive:my-test-file
    # Expected: my-test-file is recoverable in the trash folder
    # Actual: my-test-file is permanently deleted (not recoverable)

Backend specific options set by environment variables was overruled by
general backend options set by environment variables. Example:

    RCLONE_SKIP_LINKS='true'
    RCLONE_LOCAL_SKIP_LINKS='false'
    rclone lsd local:
    # Expected result: Warnings when symlinks are skipped
    # Actual result: No warnings when symlinks are skipped
    # That is RCLONE_SKIP_LINKS takes precedence

The above issues have been fixed.

The debug logging (-vv) has been enhanced to show when flags are set by
environment variables.

The documentation has been enhanced with details on the precedence of
configuration options.

See pull request #5341 for more information.
2021-07-05 16:38:20 +01:00
..
about docs: minor cleanup of space around code section 2021-04-07 08:47:29 +02:00
all dbhashsum: drop command deprecated a year ago - #4837 (#5336) 2021-05-18 12:27:17 +03:00
authorize config: remove log.Fatal and replace with error passing where possible 2021-03-14 16:03:35 +00:00
backend fs: Add context to NewFs #3257 #4685 2020-11-09 18:05:54 +00:00
cachestats build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
cat docs: fix markup of arguments #4276 2021-01-25 22:40:46 +03:00
check check: log the hash in use like cryptcheck does 2021-05-18 16:21:19 +01:00
cleanup docs: Add full stops for consistency in rclone --help 2020-09-08 16:26:09 +01:00
cmount selfupdate: dont detect FUSE if build is static 2021-04-03 21:54:15 +03:00
config docs: fix incorrect syntax in config update example 2021-06-10 08:59:18 +02:00
copy docs: fix markup of arguments #4276 2021-01-25 22:40:46 +03:00
copyto docs: Add full stops for consistency in rclone --help 2020-09-08 16:26:09 +01:00
copyurl docs: fixed some typos 2021-04-28 22:55:27 +01:00
cryptcheck check,cryptcheck: add reporting of filenames for same/missing/changed #3264 2020-07-21 22:08:13 +01:00
cryptdecode cryptdecode: fix formatting 2021-01-21 10:39:51 +00:00
dedupe docs: Updated sync and dedupe command docs #4429 2021-03-13 15:01:32 +00:00
delete Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
deletefile cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
genautocomplete docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
gendocs docs: remove manually set dates and use git dates instead 2020-06-01 13:07:46 +01:00
hashsum fs/hash: align hashsum names and update documentation (#5339) 2021-05-21 17:32:33 +03:00
link link: use "off" value for unset expiry 2021-04-07 13:58:37 +01:00
listremotes config: make config file system pluggable 2021-03-11 17:29:26 +00:00
ls docs: fix markup of arguments #4276 2021-01-25 22:40:46 +03:00
lsd fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
lsf fs: Add context to NewFs #3257 #4685 2020-11-09 18:05:54 +00:00
lsjson lsjson: fix unterminated JSON in the presence of errors 2021-02-02 17:46:56 +00:00
lsl cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
md5sum Add a download flag to hashsum and related commands to force rclone to download and hash files locally 2020-12-27 15:40:44 +00:00
mkdir mkdir: warn when using mkdir on remotes which can't have empty directories 2020-07-08 17:55:58 +01:00
mount mount: fix caching of old directories after renaming them 2021-03-22 09:07:01 +00:00
mount2 docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
mountlib Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
move docs: fix markup of arguments #4276 2021-01-25 22:40:46 +03:00
moveto docs: promote the use of -i/--interactive and "rclone sync -i" everywhere #1574 2020-06-10 12:33:53 +01:00
ncdu Use decimal prefixes for counts 2021-04-27 02:25:52 +03:00
obscure obscure: make rclone osbcure - ignore newline at end of line 2021-01-28 15:54:41 +00:00
purge docs: update documentation of commands delete,purge,rmdir,rmdirs 2020-11-23 17:10:08 +00:00
rc rc: factor async/sync job handing into rc/jobs from rc/rcserver 2021-02-07 14:56:41 +00:00
rcat rcat: add --size flag for more efficient uploads of known size - fixes #4403 2021-04-13 12:25:47 +01:00
rcd rcd: Added systemd notification during the 'rclone rcd' command call. This also fixes #5073. 2021-03-11 17:12:14 +00:00
reveal cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
rmdir docs: update documentation of commands delete,purge,rmdir,rmdirs 2020-11-23 17:10:08 +00:00
rmdirs docs: update documentation of commands delete,purge,rmdir,rmdirs 2020-11-23 17:10:08 +00:00
selfupdate selfupdate: fix archive name on macos 2021-05-13 22:35:39 +03:00
serve serve sftp: add --stdio flag to serve via stdio - fixes #5311 2021-05-28 13:40:32 +01:00
settier cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
sha1sum Add a download flag to hashsum and related commands to force rclone to download and hash files locally 2020-12-27 15:40:44 +00:00
size Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
sync docs: Updated sync and dedupe command docs #4429 2021-03-13 15:01:32 +00:00
test test changenotify: add command to help debugging changenotify 2021-04-21 10:52:05 +01:00
touch docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
tree fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
version config: fix issues with memory-only config file paths 2021-04-12 18:17:19 +02:00
cmd.go config: fixed issues with flags/options set by environment vars. 2021-07-05 16:38:20 +01:00
help.go fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
progress.go Add a download flag to hashsum and related commands to force rclone to download and hash files locally 2020-12-27 15:40:44 +00:00
selfupdate_disabled.go build: add build tag noselfupdate 2021-04-04 11:22:09 +03:00
selfupdate_enabled.go build: add build tag noselfupdate 2021-04-04 11:22:09 +03:00
siginfo_darwin.go cmd: fix up stats printing on macOS after accounting change 2019-07-28 20:38:20 +01:00
siginfo_others.go cmd: add siginfo handler 2018-06-02 17:35:13 +01:00