Sync only few .files.

Get help for specific problems
Posts: 65
Joined: 7 Nov 2020

mdrmdr

How would I achieve this filter:

include:
/.bashrc
/.bash_aliases
/.nanorc

exclude:
/.* (which is all other .files)

I do not want to explicitly name all other .files beside the 3 to include.
Any option to achieve this?
User avatar
Posts: 4866
Joined: 11 Jun 2019

xCSxXenon

Set filters to defaults
Remove the '*' from the include filter
Add "/*.bashrc" and the others to the include filter
Posts: 65
Joined: 7 Nov 2020

mdrmdr

Sorry, but I forgot to say, that there are many other rules in this sync and I cannot remove '*' from the input filter. That would have been too easy... ;-)
User avatar
Posts: 4866
Joined: 11 Jun 2019

xCSxXenon

Your request doesn't make sense then. You don't want to name all other ".files" to include, but '*' includes everything
Posts: 65
Joined: 7 Nov 2020

mdrmdr

After checking the FFS rules again, I see that it is not possible to include/exclude as i need it for 1 sync-setup. I'd either need a 2nd setup (with your solution above) or regex support, which is not implemented.

This (below a negative lookahead regex) is what I initially thought is *somehow* possible:

Include:
*
Exclude:
/NAS*/
/\.(?!bashrc$|nanorc$).*$