From 658d4d4a2f15f140b922b6025e2f8678f6e6849f Mon Sep 17 00:00:00 2001 From: Prakash Bohara <142651511+boharap7788@users.noreply.github.com> Date: Fri, 9 Feb 2024 02:21:37 +0530 Subject: [PATCH] Update archive-and-encrypt.sh decrypt and untar --- scripts/archive-and-encrypt.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/archive-and-encrypt.sh b/scripts/archive-and-encrypt.sh index a6c96e3..d1a91e1 100755 --- a/scripts/archive-and-encrypt.sh +++ b/scripts/archive-and-encrypt.sh @@ -4,3 +4,5 @@ path=$2 tar -czvf "$name.tar.gz" "$path" gpg -c "$name.tar.gz" rm -rf "$name.tar.gz" + +// decrypt and untar ==> gpg --decrypt $name.tar.gz.gpg | tar -xvzf -