rclone/fs
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
..
accounting accounting: calculate rolling average speed 2021-07-05 16:27:33 +01:00
asyncreader fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
cache fs/cache: fix recreation of backends after they have expired 2021-03-30 18:46:30 +01:00
chunkedreader Spelling fixes 2020-10-14 15:21:31 +01:00
config config: fixed issues with flags/options set by environment vars. 2021-07-05 16:38:20 +01:00
dirtree build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
driveletter Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
filter Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
fserrors Fix excessive retries missing --max-duration timeout - fixes #4504 2021-03-13 09:25:44 +00:00
fshttp fshttp: implement graceful DSCP error handling 2021-05-28 13:43:38 +01:00
fspath fspath: fix path parsing on Windows - fixes #5143 2021-03-24 09:47:03 +00:00
hash fs/hash: align hashsum names and update documentation (#5339) 2021-05-21 17:32:33 +03:00
list filter: deglobalise to put filter config into the context #4685 2020-11-27 17:28:42 +00:00
log fs/log: don't compile systemd log integration for non unix systems 2020-12-28 23:07:12 +00:00
march fs/march: improve errors when root source/destination doesn't exist 2021-05-17 16:38:03 +01:00
object Remove backend dependency from fs/hash 2019-10-01 16:29:58 +01:00
operations fs/operations: Don't update timestamps of files in --compare-dest 2021-07-05 16:29:44 +01:00
rc config: fixed issues with flags/options set by environment vars. 2021-07-05 16:38:20 +01:00
sync fs/operations: Don't update timestamps of files in --compare-dest 2021-07-05 16:29:44 +01:00
walk filter: deglobalise to put filter config into the context #4685 2020-11-27 17:28:42 +00:00
backend_config.go bin: add config.py as an example of how to use the state based config #3455 2021-05-14 14:07:44 +01:00
backend_config_test.go fs: add --all to rclone config create/update to ask all the config questions #3455 2021-05-14 14:07:44 +01:00
bwtimetable.go fs: Add string alternatives for setting options over the rc 2021-02-07 14:56:41 +00:00
bwtimetable_test.go Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
config.go config: fixed issues with flags/options set by environment vars. 2021-07-05 16:38:20 +01:00
config_list.go Make flags show up with their proper names, eg SizeSuffix rather than int 2019-02-07 11:57:26 +00:00
config_list_test.go fs: fix tests for *SepList 2018-08-21 10:58:59 +01:00
config_test.go fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
configmap.go config: fixed issues with flags/options set by environment vars. 2021-07-05 16:38:20 +01:00
countsuffix.go Use decimal prefixes for counts 2021-04-27 02:25:52 +03:00
countsuffix_test.go Use decimal prefixes for counts 2021-04-27 02:25:52 +03:00
cutoffmode.go fs: Add string alternatives for setting options over the rc 2021-02-07 14:56:41 +00:00
cutoffmode_test.go fs: Add string alternatives for setting options over the rc 2021-02-07 14:56:41 +00:00
deletemode.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
dir.go cmd/dedupe: make largest directory primary to minimize data moved (#3648) 2021-03-11 20:40:29 +03:00
direntries.go fs: Allow sync of a file and a directory with the same name 2019-06-09 15:57:05 +01:00
direntries_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
dump.go fs: Add string alternatives for setting options over the rc 2021-02-07 14:56:41 +00:00
dump_test.go fs: Add string alternatives for setting options over the rc 2021-02-07 14:56:41 +00:00
features.go fs: split overgrown fs.go (#5405) 2021-06-14 14:42:49 +03:00
fingerprint.go fs: add Fingerprint to detect changes in an object 2020-06-30 12:01:36 +01:00
fingerprint_test.go test: Add context to mockfs.NewFs #3257 #4685 2020-11-09 18:05:54 +00:00
fs.go fs: split overgrown fs.go (#5405) 2021-06-14 14:42:49 +03:00
fs_test.go fs: Add Exclusive parameter to Option to choose Examples only #3455 2021-05-14 14:07:44 +01:00
log.go fs: fix logging level mentioned in docs of Logf 2021-06-21 23:30:26 +08:00
log_test.go fs: Add string alternatives for setting options over the rc 2021-02-07 14:56:41 +00:00
mimetype.go Add context propagation to rclone 2019-06-19 11:59:46 +01:00
newfs.go fs: split overgrown fs.go (#5405) 2021-06-14 14:42:49 +03:00
open_options.go fs: split overgrown fs.go (#5405) 2021-06-14 14:42:49 +03:00
open_options_test.go fs: split overgrown fs.go (#5405) 2021-06-14 14:42:49 +03:00
pacer.go fs: split overgrown fs.go (#5405) 2021-06-14 14:42:49 +03:00
parseduration.go fs: Add string alternatives for setting options over the rc 2021-02-07 14:56:41 +00:00
parseduration_test.go fs: Add string alternatives for setting options over the rc 2021-02-07 14:56:41 +00:00
registry.go fs: split overgrown fs.go (#5405) 2021-06-14 14:42:49 +03:00
sizesuffix.go Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
sizesuffix_test.go Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
types.go fs: split overgrown fs.go (#5405) 2021-06-14 14:42:49 +03:00
version.go Start v1.56.0-DEV development 2021-03-31 19:51:43 +01:00
versioncheck.go build: raise minimum go version to go1.13 2021-02-03 17:41:06 +00:00