I can see it being really useful to set certain environment parameters in the config file for certain remotes. For example, if I always want to use 30 transfers with B2, it would be nice to set that in the remote so it is the default.
Another use case would be to make read-only remotes (set --immutable
). My logic there comes from accidentally deleting a bunch of files (100% user error) but this would have been nice.
I can see it implemented as an option being something like
flags = --transfers 30
or the like.
The issues I see are about precedence. For example if there are conflicting flags on the source and dest remote. I think the easiest way is to make it always pick one (and emit a warning). A more complex way would be to assign priorities but that is probably not worth it. Of course, anything specified at the CLI or env variable would take precedence.
What do you think?