Mention "exclusions" in config file

Jus wonderin, is there a way to mention all my general exclusions in the rclone.conf file under the specific remote?
I tried to read this Documentation but could not understand.

I put in my crontab
rclone sync /backup GDrive:/backup/ --exclude admin* --exclude "tmp*" --exclude "*.sh" --exclude "*.log"
I'm trying to avoid writing all exclusions in the command line and make it more cleaner for multiple remotes.

Many thanks

It is not possible to put exclusions in config file but you can use --exclude-from and read all exclusions from a file.

Also have a look maybe at --filter/--filter-from. I find it much cleaner and self explanatory compared to using --include/--exclude. Especially for a bit more complex set of rules.

1 Like

Thanks... where exactly would you put a 'global' exclude file?
Should I place it in ~/.config/rclone/ or do you suggest a better place for it so each linux user can access.

I also thought of making a global alias for rclone...however, that's not a neat way I suppose.

Normally /etc is used for global configs but nothing stops you from storing it wherever it is convenient for you

why not. make your system yours:)