Default filter file?

What is the problem you are having with rclone?

Sorry if this is old hat but I wonder if it is possible to have a default filter/include/exclude file which is used if no filter/include/exclude options are given on the command line, in say ~/.rclone/filter (a file).

My specific problem is that I don't want to have to worry about Vim swap files (basically anything matching *.sw[a-z] anywhere) so that I don't have to close all Vim sessions before copying/synching.

I know I can use --filter-from manually every time but I keep forgetting.

What is your rclone version

$ rclone version
rclone v1.50.2

  • os/arch: android/arm64
  • go version: go1.13.4

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Android with termux (termux.com). On the Linux side I simply use the Dropbox directory as a normal directory.

Which cloud storage system are you using? (eg Google Drive)

Dropbox, sometimes Google drive

Setting a default filter should work using environment variables, e.g. you could add export RCLONE_FILTER_FROM=~/.rclone/filter to your ~./bashrc.

I had missed that one. Thanks!

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