From 425c6ddfcd84b6bf26f3a277d010df1fb6b018da Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 23 Jan 2014 16:36:15 -0400 Subject: explicitly include unused files in backup and incremental backup include=* does not match unused files, which have no associated file. --- Types/StandardGroups.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Types') diff --git a/Types/StandardGroups.hs b/Types/StandardGroups.hs index 434156a0e..d95f28ee1 100644 --- a/Types/StandardGroups.hs +++ b/Types/StandardGroups.hs @@ -78,9 +78,9 @@ preferredContent ClientGroup = lastResort $ "((exclude=*/archive/* and exclude=archive/*) or (" ++ notArchived ++ ")) and not unused" preferredContent TransferGroup = lastResort $ "not (inallgroup=client and copies=client:2) and (" ++ preferredContent ClientGroup ++ ")" -preferredContent BackupGroup = "include=*" +preferredContent BackupGroup = "include=* or unused" preferredContent IncrementalBackupGroup = lastResort - "include=* and (not copies=incrementalbackup:1)" + "(include=* or unused) and (not copies=incrementalbackup:1)" preferredContent SmallArchiveGroup = lastResort $ "(include=*/archive/* or include=archive/*) and (" ++ preferredContent FullArchiveGroup ++ ")" preferredContent FullArchiveGroup = lastResort notArchived -- cgit v1.2.3