12 lines
316 B
Bash
Executable file
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
|
|
|