aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-12-10 15:43:51 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-12-10 15:44:58 -0400
commit6643b32792fef191fb86bc8a5634f0c52c60cf60 (patch)
treef0c4f686f754145acd23c961ebd5cae68a44be4b
parentfb2068a99d96af27babca2d8cdaa25be7d9c9b1e (diff)
fix preferred content definition for the backup group
Broken by commit 2a04e215e10469ee3bab5d1a5d6d76b0c35cc46c, which made empty preferred content strings match nothing, rather than everything.
-rw-r--r--Types/StandardGroups.hs2
-rw-r--r--doc/preferred_content.mdwn2
2 files changed, 3 insertions, 1 deletions
diff --git a/Types/StandardGroups.hs b/Types/StandardGroups.hs
index c1ea1fd99..bdc8c4b66 100644
--- a/Types/StandardGroups.hs
+++ b/Types/StandardGroups.hs
@@ -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)"
diff --git a/doc/preferred_content.mdwn b/doc/preferred_content.mdwn
index 499cf628e..6408656e4 100644
--- a/doc/preferred_content.mdwn
+++ b/doc/preferred_content.mdwn
@@ -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