From b891d6098827326dbb0734df519f7bdde5108096 Mon Sep 17 00:00:00 2001 From: Martin Blazik Date: Sun, 2 Oct 2022 14:27:51 +0200 Subject: [PATCH] Add gocryptfs helper functions --- rc/gocryptfs.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 rc/gocryptfs.sh diff --git a/rc/gocryptfs.sh b/rc/gocryptfs.sh new file mode 100644 index 0000000..c30402c --- /dev/null +++ b/rc/gocryptfs.sh @@ -0,0 +1,12 @@ + +CRYPTED_DIR=$HOME/Sync/safe +DECRYPTED_DIR=$HOME/mnt/safe + +function safe-mount() { + gocryptfs $CRYPTED_DIR $DECRYPTED_DIR +} + +function safe-unmount() { + fusermount -u $DECRYPTED_DIR +} +