summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Rsync.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Propellor/Property/Rsync.hs')
-rw-r--r--src/Propellor/Property/Rsync.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Propellor/Property/Rsync.hs b/src/Propellor/Property/Rsync.hs
index 894b8cc7..cae3c877 100644
--- a/src/Propellor/Property/Rsync.hs
+++ b/src/Propellor/Property/Rsync.hs
@@ -22,10 +22,12 @@ syncDir = syncDirFiltered []
data Filter
= Include Pattern
| Exclude Pattern
+ | Protect Pattern
instance RsyncParam Filter where
toRsync (Include (Pattern p)) = "--include=" ++ p
toRsync (Exclude (Pattern p)) = "--exclude=" ++ p
+ toRsync (Protect (Pattern p)) = "--filter=P " ++ p
-- | A pattern to match against files that rsync is going to transfer.
--