From dc52e3215147e3f805be64705ee9e07a2cc453ee Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 18 Aug 2021 11:39:01 +0200 Subject: MANPAGE: add "exclude all but" example Fixes https://github.com/rfjakob/gocryptfs/issues/588 --- Documentation/MANPAGE.md | 8 ++++++-- 1 file 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 -- cgit v1.2.3