I want to archive a directory and then encrypt it. And obviously get that directory back again sometime in future.
This will archive, compress, and encrypt:
tar -cz some-directory | gpg -c -o archive.tgz.gpg
And this will decrypt, decompress, and extract:
gpg -d archive.tgz.gpg | tar xz
Have something to say? Contact me, I would love to chat.