Use zip archives for vault as they are faster for random access

This commit is contained in:
Cyryl Płotnicki 2016-10-07 23:40:00 +02:00
parent 4be03cbf5c
commit c6933ab7bd
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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*