It is currently Tue, 17 May 2022 18:47:23 GMT

Author Message
 Script for Handling a Tape Archive
A little backgound...I have been given a tape. The tape contains an
unknown number of tar files (~8GB 8 mm tape). Each of the files is an
archive of a data collection experiment which has a unique name so that
I do not have to worry about overwriting a file with a subsequent untar.

What I need is a simple script to untar all the possible files on the
tape (/dev/rmt/0n) without user intervention. This is being done on
Solaris 8, so I have bash, csh, tcsh, ksh available (along with perl,

Unfortunately, I am not a script expert by any means and I need some
help. In the future, I intend to change our data collection methods...


 Sun, 12 Oct 2003 08:24:29 GMT   
 Script for Handling a Tape Archive (Dr. Evil Moo 97) writes:

Given that tar's exit status tells you that an error occured, the
following script should untar all archives on the tape until an error
occurs (which most likely means that there are no more tar files on the
tape). I don't have a tape drive at my disposition, so I was not able to
test this, though.

while tar xf /dev/rmt/0n

Another possibility would be the following script:

tar xf /dev/rmt/0n && $0

Do NOT reply to the address given in the From: header. If you want to
reply by mail, use the following address (after deleting the XXX):
Ronald Otto Valentin Fischer <>
(Tired of getting spam after posting a message?

 Sun, 12 Oct 2003 14:34:59 GMT   
 Script for Handling a Tape Archive
In article <>,

Worked just fine. Thank you.


 Tue, 14 Oct 2003 09:49:26 GMT   
   [ 3 post ] 

Similar Threads

1. backscri - selection of scripts for handling compressed tape backups

2. Formatting tapes with an Archive 5945 tape drive

3. Tape device handling (end of tape) in 2.4 / 2.6 problem

4. Problems handling end-of-tape when writing to tape

5. Free Scripts: Metertek Perl Script Archive

6. Handling multi-volume cpio archives

7. -- handle multiple-floppy archives

8. SCO unzipper that handles multi-volume archives?

9. handling archives with konqueror

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software