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 set -e
echo "decrypting..." echo "decrypting..."
gpg2 -d ~/Nextcloud/vault.tar.xz.gpg > ~/.vault.tar.xz gpg2 -d ~/Nextcloud/vault.zip.gpg > ~/.vault.zip
echo "mounting..." echo "mounting..."
mkdir -p ~/.vault mkdir -p ~/.vault
archivemount ~/.vault.tar.xz ~/.vault archivemount -o nobackup ~/.vault.zip ~/.vault

View file

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
set -e set -e
umount ~/.vault sudo umount ~/.vault
gpg2 -c ~/.vault.tar.xz gpg2 -c ~/.vault.zip
mv ~/.vault.tar.xz.gpg ~/Nextcloud/vault.tar.xz.gpg mv ~/.vault.zip.gpg ~/Nextcloud/vault.zip.gpg
rm -vfr ~/.vault* rm -vfr ~/.vault*