From 2a140772258930a729bb05461804723d6073aa53 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Fri, 21 Apr 2023 12:05:27 +0200 Subject: [PATCH] Use age encryption. --- backuper | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" }