Add support for pattern prefix for the whole file with --exclude-from
Open
cmd: create
patterns
- Dominant language
- Python
- Stars
- 13.7k
- Forks
- 875
- Avg merge
- 11h 15m
- Merged PRs (30d)
- 192
Description
Given that you have a list of regular expression patterns already (e.g. used with "bup"), it would be helpful if `--exclude-from re:/etc/backup-exclude-bup.txt` would work, i.e. consider all patterns in the file to have a `re:` prefix.
I've used the following Vim commands to convert the list manually:
``` vim
:%s/^\ze[^#]/re:/gc
" borg does not like a / at the end before $ to exclude dirs?!
:%s~/\$~\$~gc
```
Contributor guide
Assessment
This issue has not been assessed yet.