Password Protect Tar.gz File →
tar -czvf - directory_name | gpg -c -o secure_backup.tar.gz.gpg : Tells GPG to use symmetric encryption (password-based). -o : Specifies the output filename.
(Note: Not all zip versions on Linux support AES-256; check your man page.) password protect tar.gz file
SOURCE_DIR=$1 OUTPUT_BASE=$2