Help with tar

Colin Dente dente at els.uucp
Fri May 5 23:01:23 AEST 1989


In article <4848 at macom1.UUCP> larry at macom1.UUCP (Larry Taborek) writes:
>From article <2175 at wpi.wpi.edu>, by gshapiro at wpi.wpi.edu (Gregory N. Shapiro):
>> I am trying to make a tape archive of a directory and a file using tar
>> on an Encore MultiMax.  The first part comes out successful:
[...stuff deleted...]

>lets say that ct0 is your tape driver.  If so, then nct0 would be
>the No-rewind tape driver.  To put on your origional archive you
>would type:
>
>tar -cf /dev/nct0 gshapiro
>
>Then to add another tar archive to the tape:
>
>tar -cvf /dev/ct0 /usr/spool/mail/gshapiro
>From the gist of the original article, I get the impression that Greg
was talking about adding new files to the tape at different times, so
it would be a good idea to make sure you step the tape past the first
file before writing the second!

Whilst you could do the tar tvf /dev/nct0 that Larry suggests for
extracting the second file, it would be much neater (and quicker?) to
use mt to control the tape drive.  i.e. to writ the second file:

mt -f /dev/nct0 fsf1 ;           # Steps tape over first file
tar cvf /dev/ct0 /usr/spool/... ;# write the second file

And then to extract the second file, just do what Larry said, but use
mt again.
>
>Note that this does not add to a tape
>archive, but instead puts a second tape archive after the first.
Indeed, and vey messy it can get.  Why, oh why can't I rely on tar
being able to append to a file?

Ho hum

Colin


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| Colin Dente                      | JANET: dente at uk.ac.man.ee.els            |
| Dept. of Electrical Engineering  | ARPA:  dente at els.ee.man.ac.uk            |
| University of Manchester         | UUCP:  ...!mcvax!ukc!man.ee.els!dente    |
| England                          | These might work now, but then again...  |
|-----------------------------------------------------------------------------|
|   Well I know how to behave in the restaurant now,                          |
|   I don't tear at the meat with my hands.       ....Well, not always....    |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



More information about the Comp.unix.wizards mailing list