Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Encrypting contents of bzipped tarballs

Posted on 2006-04-04
Medium Priority
Last Modified: 2010-04-22
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.

Question by:Frybread
1 Comment
LVL 43

Accepted Solution

ravenpl earned 750 total points
ID: 16378700
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)

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Fine Tune your automatic Updates for Ubuntu / Debian
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question