borg icon indicating copy to clipboard operation
borg copied to clipboard

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

Open blueyed opened this issue 9 years ago • 1 comments

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:

:%s/^\ze[^#]/re:/gc
" borg does not like a / at the end before $ to exclude dirs?!
:%s~/\$~\$~gc

blueyed avatar Sep 17 '16 10:09 blueyed

something similar was recently added for the new --patterns-from, one can switch the pattern style within the file.

ThomasWaldmann avatar Mar 22 '17 13:03 ThomasWaldmann