tar archives

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers tar archives
# 1  
Old 06-27-2001
Java tar archives

I have a tar archive which I believe may be corrupted, produced on an HP-UX 10.x box and written to a 4mm DDS-3 tape.

I understand that gnu tar has a -W (--verify) option which will attempt to verify the archive after it has been created. Am I right in saying that this option cannot be used to verify an existing archive?

Secondly, the native shipped HP tar does not include this verify option at all. Does there exist a program for verifying the integrity of tar files (written to a tape), either whilst creating the tar file or after the event?

As a foot note I must point out that this archive has never been gzip'ed.

Thanks for any input...
# 2  
Old 06-27-2001
Take a table reading off the archive

tar -tvf [tarfile]

I have not yet known a tar archive that gives a valid table that does not restore without any problems. Redirect the output to a file if it is a large archive and you need to examine the table more thoroughly.

# 3  
Old 06-28-2001
When I attempt this I get an error message:

Tar: blocksize = 2
directory checksum error

Now a few things are leading me to want to verify the archive rather than assume that the media is shagged:

(1) The filesystems backed up onto this tape have very long path and file names

(2) The system has not been patched for an age.

(3) Previous sysadmins for these boxes (I inherited them 3 weeks ago) have apparently performed successful restores in the very recent past

Therefore I just want to make sure that the archive is not crocked before I write it off.

For everyone's info: you _can_ apparently verify an existing archive with gnu's tar: www.gnu.org

# 4  
Old 06-28-2001
If you're not getting a table off the tar file and there is a checksum error it's probably the archive which is corrupt - however it could be the media. Either way you're not going to be able to restore from it, why don't you try creating the archive again? Other than working out if you are going to use this tape again or not, I can't see any other reason for you wanting to find out whether the archive or the tape is messed up.

You could spend a fortune and send the tape to HP's storage recovery labs for them to take a look, but try getting that past your line manager Smilie

# 5  
Old 06-29-2001

More curiosity than anything - I'd just like to understand _why_ it went wrong - might even learn something Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Tar archives monthly

Hi, I want to archive files by month, is there anyway of this code looks better? find /tmp/w/ -type f -newermt '2014-01-01' ! -newermt '2014-02-01' | xargs tar -czvf files01.tar find /tmp/w/ -type f -newermt '2014-02-01' ! -newermt '2014-03-01' | xargs tar -czvf files02.tar find... (9 Replies)
Discussion started by: prpkrk
9 Replies

2. UNIX for Advanced & Expert Users

Multi-Volume tar archives. [solved]

Hi, The only off-line storage medium I have is DVD. I am trying to back up around 10G of data and if I can achieve a practical solution I will use it more generally. I am currently considering something along the lines of: tar --create --multi-volume --tape-length=nnnn <pathspec> |... (0 Replies)
Discussion started by: MikeGM
0 Replies

3. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

Hi all, I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies

4. Shell Programming and Scripting

Create unique tar archives from a list of directories

I'm looking to archive a client directory from a CIFS share There are multiple directories that will be stored in a text file and I'm looking to create an individual tar archive of each folder in the directory. I've tried a number of commands to no avail. Here's what I would like. ... (2 Replies)
Discussion started by: Steelysteel
2 Replies

5. UNIX for Dummies Questions & Answers

tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file

Hi all, 4 files are returned when i issue 'find . -mtime -1 -type f -ls'. ./ora_475244.aud ./ora_671958.aud ./ora_934052.aud ./ora_934050.aud However, when I issued the below command: tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies

6. OS X (Apple)

Decompressing Tar Archives (Finally!)

If you've come across this problem with unzipping/decompressing zips, you might find this helpful: I was having a little trouble with unzipping (decompressing) tarred archives under OS 10.5 until today. My first attempt was to just simply double-click on the zip file (i.e., example.tar.gz) and... (2 Replies)
Discussion started by: unimachead
2 Replies

7. UNIX for Dummies Questions & Answers

Unix Shell Archives

I have a few small files that I need to put into a shar file called endshar. It'd be nice to get a little help in getting this to work, I can't really find any documentation on the internet and the bits I can find aren't really helpful. Any help would be great. :) (1 Reply)
Discussion started by: Visage
1 Replies

8. UNIX for Dummies Questions & Answers

flash archives

HI, are you supposed to run flarcreate in multi user mode? or should you do it in single user? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

9. UNIX for Advanced & Expert Users

Jumpstart and Flash Archives

Ladies and Gentlemen: I am short on time and need to get up to speed fast on the use of flash archives. I am very familiar with Jumpstart and have used it successfully for the past 5 years. The current project I am working on requires optimization of time and speed when deploying systems which is... (0 Replies)
Discussion started by: rambo15
0 Replies

10. UNIX for Dummies Questions & Answers

segmenting tar archives

assuming i need to create a tar archive which would turn out to be bigger than 2gb, how could i segment the archive into say, 1 gb parts? (3 Replies)
Discussion started by: crudealien
3 Replies
Login or Register to Ask a Question