[Borgbackup] problem with --patterns-from

Marian Beermann public at enkore.de
Fri Apr 28 04:30:11 EDT 2017


Hi Pawel,

you're not doing anything wrong, this is/was an issue in the patterns
implementation.
See https://github.com/borgbackup/borg/issues/2314

Cheers, Marian

On 27.04.2017 23:32, Paweł Kołodziej wrote:
> 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
> 
> 
> _______________________________________________
> Borgbackup mailing list
> Borgbackup at python.org
> https://mail.python.org/mailman/listinfo/borgbackup



More information about the Borgbackup mailing list