dotfiles/tools/mount-vault

10 lines
172 B
Text
Raw Normal View History

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