Any way to set non-backend flags/options via file?

Is there any way to set options like --exclude ..., --track-renames, --max-size 10M, --modify-window 5s in a conf file or something to make scripting cleaner?

1 Like

Thanks ... is that something that already works, or a future enhancement?

Future enhancement.

You can set them as environment variables too which may be suitable

export RCLONE_MODIFY_WINDOW=5s

etc

I tend to do that for scripting if I'm running multiple rclone commands.

Is there an advantage to using RCLONE_ environment variables over aliases, say, alias rclone='rclone --progress --modify-window 5s?

Depends on what you are looking for really and what the use is.

If you are running interactively all the time via that command from a shell, an alias seems like a good fit.

If I have a parameter I want to use all the time everywhere, I might set an environment variable.

Like I use a config variable:

RCLONE_CONFIG=/opt/rclone/rclone.conf

and that works as I want everything to use that.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.