borgbackup / borgbackup/borg

Add support for pattern prefix for the whole file with --exclude-from

Open
#1,613 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.