func backup-it: change symmetric to assymetric

This commit is contained in:
TheK4n 2022-01-12 00:46:41 +03:00
parent d2514416c7
commit 0c13c35842

View File

@ -122,5 +122,5 @@ backup-it() {
cur_dir_name="$(basename "$PWD")"
mkdir -p "$bkp_dir"/"$cur_dir_name" || true
tar czf - * | gpg -c > "$bkp_dir"/"$cur_dir_name"/"$(date +"%H-%M-%S")".tar.gz.gpg
tar czf - * | gpg -e -R thek4n > "$bkp_dir"/"$cur_dir_name"/"$(date +"%H-%M-%S")".tar.gz.gpg
}