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
|
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
|
||||||
|
|
||||||
|
|
|
@ -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*
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue