fix preferred content definition for the backup group

Broken by commit 99a8a5297c, which made empty
preferred content strings match nothing, rather than everything.
This commit is contained in:
Joey Hess 2012-12-10 15:43:51 -04:00
parent b28c0e28cf
commit 727223a229
2 changed files with 3 additions and 1 deletions

View file

@ -36,6 +36,6 @@ descStandardGroup FullArchiveGroup = "full archive: archives all files not archi
preferredContent :: StandardGroup -> String
preferredContent ClientGroup = "exclude=*/archive/* and exclude=archive/*"
preferredContent TransferGroup = "not (inallgroup=client and copies=client:2) and " ++ preferredContent ClientGroup
preferredContent BackupGroup = "" -- all content is preferred
preferredContent BackupGroup = "include=*"
preferredContent SmallArchiveGroup = "(include=*/archive/* or include=archive/*) and " ++ preferredContent FullArchiveGroup
preferredContent FullArchiveGroup = "not (copies=archive:1 or copies=smallarchive:1)"

View file

@ -116,6 +116,8 @@ will be added later.
All content is preferred.
`include=*`
### small archive
Only prefers content that's located in an "archive" directory, and