dotfiles/tools/mount-vault

9 lines
175 B
Bash
Executable file

#!/bin/bash
set -e
echo "decrypting..."
gpg2 -d ~/Nextcloud/vault.zip.gpg > ~/.vault.zip
echo "mounting..."
mkdir -p ~/.vault
archivemount -o nobackup ~/.vault.zip ~/.vault