Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

To limit the focus of the question, I'm going to say using Linux as the OS, and tar as the compression format. Clearly run-time is important, but knowing the archive is valid is more important. If providing a command-line, please also link to the documentation for it, and within your answer explain each segment of the command.

share|improve this question
Just a small comment, but I'm pretty sure that tar does not really compress the files by default (I don't think) ... it just balls them all together. I know that some versions have built-in GZIP compression, but by default they usually just build an archive file. – Marc Reside Mar 10 '11 at 20:03
+1 @Marc Reside: That's in fact a great point, I'd noticed "tar.gzip" before, but never knew tar just forced directories/files into one file. – blunders Mar 10 '11 at 20:09
I've been recently playing with the TAR and GZIP file formats in order to better understand them. I'll try to give you an answer for your question in a bit ... I'm making sure I have my facts straight. :) EDIT Nevermind, it looks like M'vy gave a good answer. – Marc Reside Mar 10 '11 at 20:14
up vote 1 down vote accepted

Aha! Found what we're looking for (Google saves the day)!

Check this link out:

Like you, the author is looking for a good way to verify the TAR archive. He proposes a method to do just what you're looking for, and points to a piece of script software that does the checking for you.

It's not perfect, but it's better than nothing.

EDIT: It seems VeriTAR even supports compressed TAR archives.

share|improve this answer
+1 @Marc Reside: Yes, I'd had been using a checksum method, but it had a super amount of overhead, I'll take a look VeriTAR in the next few days and get back on the results. Thank YOU!! – blunders Mar 10 '11 at 20:55

Would the --verify flag be usefull to you ? GNU

share|improve this answer
It's better than nothing, but still seem "flake" -- that said, if no better answer is provide I'll take it as the answer, since I was not aware of the --verify flag and it's of use. Thanks! – blunders Mar 10 '11 at 20:07
Yeah no pb. I know that this answer is not ideal, but that's all I got ^^ – M'vy Mar 10 '11 at 20:14
I think any better answer would require a bit of scripting to add a file or data block checksum to the process somehow. It doesn't look like the TAR archive program has any checksum verification for the data blocks (just the header blocks). Still looking, though. – Marc Reside Mar 10 '11 at 20:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .