dotfiles/tools/mount-vault

13 lines
316 B
Text
Raw Normal View History

#!/bin/bash
set -e
echo "decrypting..."
2016-10-08 07:04:46 +01:00
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