mirror of https://github.com/borgbackup/borg.git
simplify example in helptext. add testdata.
This commit is contained in:
parent
876b670d60
commit
fbee04ce23
|
@ -1013,8 +1013,6 @@ class Archiver:
|
||||||
# susan is a nice person
|
# susan is a nice person
|
||||||
# include susans home
|
# include susans home
|
||||||
+ /home/susan
|
+ /home/susan
|
||||||
# ... and its contents
|
|
||||||
+ /home/susan/*
|
|
||||||
# don't backup the other home directories
|
# don't backup the other home directories
|
||||||
- /home/*
|
- /home/*
|
||||||
|
|
||||||
|
|
|
@ -508,6 +508,9 @@ def test_load_invalid_patterns_from_file(tmpdir, lines):
|
||||||
(["+fm:*/something00.txt",
|
(["+fm:*/something00.txt",
|
||||||
"-/data"],
|
"-/data"],
|
||||||
["/data/something00.txt", '/home', '/home/leo', '/home/leo/t', '/home/other']),
|
["/data/something00.txt", '/home', '/home/leo', '/home/leo/t', '/home/other']),
|
||||||
|
(["+/home/leo",
|
||||||
|
"-/home/*"],
|
||||||
|
['/data', '/data/something00.txt', '/data/subdir/something01.txt', '/home', '/home/leo', '/home/leo/t']),
|
||||||
(["+fm:/home/leo",
|
(["+fm:/home/leo",
|
||||||
"-/home/"],
|
"-/home/"],
|
||||||
['/data', '/data/something00.txt', '/data/subdir/something01.txt', '/home', '/home/leo', '/home/leo/t']),
|
['/data', '/data/something00.txt', '/data/subdir/something01.txt', '/home', '/home/leo', '/home/leo/t']),
|
||||||
|
|
Loading…
Reference in New Issue