dotfiles/tools/mount-vault
2016-10-08 08:04:46 +02:00

12 lines
316 B
Bash
Executable file

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