diff --git a/backuper b/backuper index ddcf844..839077f 100755 --- a/backuper +++ b/backuper @@ -11,7 +11,8 @@ encrypt () { x=$(date +%d.%m.%y) cd "$HOME/.local" tar cv -I"zstd -19 -T0" -f "$HOME/.local/cloud/backup-$x.tar.zst" "backup" - gpg -c --no-symkey-cache --cipher-algo AES256 -o "$HOME/.local/cloud/backup-$x.tar.zst.gpg" "$HOME/.local/cloud/backup-$x.tar.zst" + read -p "Enter public key" pubKey + age -r $pubKey "$HOME/.local/cloud/backup-$x.tar.zst" > "$HOME/.local/cloud/backup-$x.tar.zst.age" shred -uzn3 "$HOME/.local/cloud/backup-$x.tar.zst" }