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?
Sync only few .files.
- Posts: 65
- Joined: 7 Nov 2020
-
- Posts: 4866
- Joined: 11 Jun 2019
Set filters to defaults
Remove the '*' from the include filter
Add "/*.bashrc" and the others to the include filter
Remove the '*' from the include filter
Add "/*.bashrc" and the others to the include filter
- Posts: 65
- Joined: 7 Nov 2020
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... ;-)
-
- Posts: 4866
- Joined: 11 Jun 2019
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
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$).*$
This (below a negative lookahead regex) is what I initially thought is *somehow* possible:
Include:
*
Exclude:
/NAS*/
/\.(?!bashrc$|nanorc$).*$