[Borgbackup] problem with --patterns-from

Paweł Kołodziej p.kolodziej at gmail.com
Thu Apr 27 17:32:57 EDT 2017


Hi,
I try to backup only .odt files using --paterns-from.

My simlpe test case is:
- directory /tmp/test with files f1.txt and f2.odt:
     $ mkdir /tmp/test
     $ date > /tmp/test/f1.txt
     $ date > /tmp/test/f2.odt
- file p.txt:
$ cat p.txt
R /tmp/test
+ re:odt
- /tmp/test

then:
$ borg init -e none /tmp/repo
$ borg create --patterns-from p.txt /tmp/repo::{now} --list
x /tmp/test

so f2.odt was not stored and I don't understand why. It matches first 
pattern (re:odt) so it should be included.

$ borg --version
borg 1.1.0b4

I'm looking forward for any help.

Best,
Pawel




More information about the Borgbackup mailing list