Use zip archives for vault as they are faster for random access
This commit is contained in:
parent
4be03cbf5c
commit
c6933ab7bd
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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*
|
||||
|
||||
|
|
Loading…
Reference in a new issue