Encrypting contents of bzipped tarballs

I have a crude backup system for our office network consisting of a bash script that runs nightly at 3 AM, makes bzipped tarballs of some major directories and their sub-directories, and then creates a new folder to store these bzipped tarballs.

Once or twice a month on a Friday afternoon, I'll SSH into the server and create .iso files containing these bzipped tarballs and burn them to CD's.

Anyone with the smallest amount of computer knowledge could easily figure out how to unpack and view all this data if they got hold of any of these CD's.

How do I go about encrypting all this data prior to the tarballing and bzipping?
Can I work some encryption commands into my bash script that will do this for me?
What should I read up about in order to accomplish the creation of encrypted bzipped tarballs.

Thanks for you time and help.

Fry
FrybreadAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ravenplCommented:
You could do such chain:
tar the data, then encrypt it (with gpg), then bzip2 it.
tar [options] | gpg -c | bzip2 > output.encrypted.tar.bz2

or use zip or rar for that purpose (instead tar/bzip2)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Security

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.