December 5, 2022, 1:33pm
It would be nice to have the ability to specify a exclude-from file in the rclone.conf
In my case, I'd like to avoid the synchronization of my editor's cache files and libreoffice lockers.
I do not see any solution except using the option --exclude or --exclude-from each time I use rclone.
Is this something possible ?
$ rclone version
os/version: arch (64 bit)
os/kernel: 6.0.10-arch2-1 (x86_64)
December 5, 2022, 4:24pm
it's a whole lot easier for you to just include the aforementioned --exclude flag in your script that you are likely saving anyway to run each time, than it is for the team to stitch this in at the code level
December 6, 2022, 8:00am
It is not about easiness, it is about collaboration, working with a team and to avoid dumb files in the tree. You probably use a .gitignore in a git repository
What script ? At that point, the most relevant solution is to alias rclone
December 6, 2022, 8:07am
There is an issue to put flags into the config file as configuration profiles. It isn't implemented yet but it is on the list!
You can also set environment variables which may be interesting
RCLONE_INCLUDE_FROM and you mentioned
.gitignore - rclone supports
--exclude-if-present which might be useful.
perhaps an environment variable
RCLONE_EXCLUDE_FROM with a default value of
December 9, 2022, 2:48pm
that would be awesome indeed
January 5, 2023, 4:46am
I assume you don't type out the rclone command each time you sync. don't you have a premade script you keep handy so you can just schedule it or execute it at will?
January 5, 2023, 7:57am
Your assumption is incorrect. I have no script. It is not required in my usage.
At this stage, I have made a quick alias with the --exclude-from flag.
Perhaps rclone could also watch for ~/.conf/rclone/exclude.conf
January 5, 2023, 3:12pm
really? so each time you do a sync you type out the command with the file paths and flags?
January 5, 2023, 4:06pm
Yeah I type every flag I need. It ends more or less that big:
rclone sync myrepo: ./mydata
Unusual, isn't it ?
January 5, 2023, 4:29pm
Unusual, isn't it ?
i did the same thing for a while. but i very quickly realized i was spending a LOT of time typing scripts into that little black window. now i keep a OneNote window open and just copy/paste whichever script i need for recurring manual syncs, and the every-day ones i just have windows task scheduler run a .bat file. but i guess we have to keep around 2 million files synced that are distributed on 4 servers, so a little automation goes a long ways.
March 6, 2023, 4:29pm
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.