9.1 To archive and encrypt a folder

tar czvf - filespec | gpg -e -r user@mail.net > folder.tgz.encrypted

This command archives filespec (which can be a number of files and folders), compresses and encrypt. The resulting file is filespec.tgz.encrypted. user@mail.net is the user ID (email address) of the intended recipient of the encrypted file.