summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-08-18 11:39:01 +0200
committerJakob Unterwurzacher2021-08-18 11:39:01 +0200
commitdc52e3215147e3f805be64705ee9e07a2cc453ee (patch)
treeb0befc7337c352241c3e9192521dbc63bcf7621b /Documentation
parent0bc97845087b1e426d8cb2cb9c36779c4f9b2671 (diff)
MANPAGE: add "exclude all but" example
Fixes https://github.com/rfjakob/gocryptfs/issues/588
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/MANPAGE.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/Documentation/MANPAGE.md b/Documentation/MANPAGE.md
index 3af7cb2..1547591 100644
--- a/Documentation/MANPAGE.md
+++ b/Documentation/MANPAGE.md
@@ -192,7 +192,7 @@ You need root permissions to use `-dev`.
#### -e PATH, -exclude PATH
Only for reverse mode: exclude relative plaintext path from the encrypted
view, matching only from root of mounted filesystem. Can be passed multiple
-times. No wildcards.
+times.
Example that excludes the directories "Music" and "Movies" from the root
directory:
@@ -209,7 +209,11 @@ Example to exclude all `.mp3` files in any directory:
gocryptfs -reverse -exclude-wildcard '*.mp3' /home/user /mnt/user.encrypted
-See also `-exclude`, `-exclude-from` and the [EXCLUDING FILES](#excluding-files) section.
+Example to to exclude everything but the directory 'important' in the root dir:
+
+ gocryptfs -reverse -exclude-wildcard '*' -exclude-wildcard '!/important' /home/user /mnt/user.encrypted
+
+See also `-exclude-from` and the [EXCLUDING FILES](#excluding-files) section.
#### -exclude-from FILE
Only for reverse mode: reads gitignore patterns