On Mon, Feb 18, 2013 at 9:11 AM, andrew mcelroy <[email protected]> wrote:
> On Mon, Feb 18, 2013 at 9:02 AM, Howard White <[email protected]> wrote:
>> So I solicit thoughts on such an exercise.  One obvious test that needs to
>> occur is to check the size of the NAS archive to make sure it'll fit on the
>> tape.  The process also needs to be archive utility neutral as we use cpio,
>> star, afio and occasionally tar.  An archive is an archive is an archive so
>> the process of moving an archive to tape "should not" care what the archive
>> is -- famous last words.

You can also use the 'file' utility to figure out what an archive was.
 I don't think it'll
work directly on the tape device, but if you read even the first 512
bytes off the tape
(usually with something like dd), 'file' will generally be able to
tell you what type of
archive it is (or if it's gzipped data, it'll tell you that).

> well..
> /bin/ls -ls archive_here | awk '{print $6}'
>
> will give you the file size of the archive
> I am a big fan of MD5 or SHA1 for having a hash

In a single process:  perl -e 'print -s "archive_here", "\n"'

-Tilghman

-- 
-- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to