diff --git a/tools/mount-vault b/tools/mount-vault index 3c071b22..685149ff 100755 --- a/tools/mount-vault +++ b/tools/mount-vault @@ -2,8 +2,8 @@ set -e echo "decrypting..." -gpg2 -d ~/Nextcloud/vault.tar.xz.gpg > ~/.vault.tar.xz +gpg2 -d ~/Nextcloud/vault.zip.gpg > ~/.vault.zip echo "mounting..." mkdir -p ~/.vault -archivemount ~/.vault.tar.xz ~/.vault +archivemount -o nobackup ~/.vault.zip ~/.vault diff --git a/tools/umount-vault b/tools/umount-vault index fdf83744..56da2175 100755 --- a/tools/umount-vault +++ b/tools/umount-vault @@ -1,8 +1,8 @@ #!/bin/bash set -e -umount ~/.vault -gpg2 -c ~/.vault.tar.xz -mv ~/.vault.tar.xz.gpg ~/Nextcloud/vault.tar.xz.gpg +sudo umount ~/.vault +gpg2 -c ~/.vault.zip +mv ~/.vault.zip.gpg ~/Nextcloud/vault.zip.gpg rm -vfr ~/.vault*