Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 04-16-2009, 07:54 PM   #1
LQ Newbie
Registered: Jun 2007
Distribution: Gentoo, Ubuntu
Posts: 25

Rep: Reputation: 0
recovering corrupt, encrypted tar data from tape

I'm looking into building a backup system for my home network, and I want to encrypt all of my tape backups.

I haven't done much with tape backup before, but I know that tar was designed to send a stream of data to a tape. Correct me if I'm wrong, but it's my understanding that--because of the way tar works--it's relatively simple to restore data from tapes when a fraction of the data pulled off the tape is corrupted.

Now, if I was to send _encrypted_ data to a tape, would it still be possible to restore corrupted data in such a way? If so, would it be significantly more difficult?

Cheers and TIA!
Old 04-18-2009, 10:49 AM   #2
Senior Member
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,194

Rep: Reputation: 105Reputation: 105
I was waiting for someone else to respond first, but nobody is; so, I'll jump in even though I haven't had to deal with recovering a corrupted encrypted backup myself.

I think if a backup is encrypted, and there is some corruption in the backup on disk or on tape, it will be much harder to recover. The corruption, instead of just being the particular bits that are corrupted will affect larger segments of the data, dependent on the algorithm. I tried finding some references through google, and it turned out to be a difficult search. There are just some indications in the following links. Towards the end on both. <-- scan down that page for "corrupt"

If I were doing this, I would break up the backup into smaller pieces. For example, if you had a large drive that you were backing up, I wouldn't even think of doing a single tar of the whole thing and then encrypting it. Break it up logically into smaller pieces, directories, and back those up separately. You could easily script that, and most backup software will have some means of doing that. In Amanda for example, you set up a disklist file, and the lines in that file (referred to as DLE's or DiskList Entries) specify something that is to be backed up and how. It can use gnu tar, and it can encrypt backups.

I would also make sure I had multiple backups at any given time. If one is damaged or corrupted, you will have another to go to. At home I'm more lax about that. At work, I have 6 weeks plus periodic archives of nightly backups with at least one full each week. I'm also beginning to use ZFS, which gives me better reliability in my file systems.


backup, encryption, ssl, tape, tar

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Tar file to tape drive faster than dir/files to tape drive? Runge_Kutta Linux - General 2 03-11-2009 08:13 AM
Help recovering damaged tar.gz file 0x29a Linux - Software 6 10-28-2008 04:28 PM
tar & un tar Data integrity error ShadowHywind Linux - General 1 08-13-2008 09:29 PM
Recovering files from corrupt TAR archive... johnwyles Linux - Software 8 04-17-2006 05:44 AM
Recovering tar files burnt to cd without a filesystem?? mazinoz DamnSmallLinux 2 11-22-2005 06:47 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration