Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: jenkinsm@uv4.eglin.af.mil (MICHAEL A JENKINS) Newsgroups: comp.sys.sun Subject: Re: 1/4 inch cartridge tape drives & tar Message-ID: <8901311929.AA26018@rice.edu> Date: 9 Feb 89 00:56:55 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 29 Approved: Sun-Spots@rice.edu Original-Date: 31 Jan 89 13:12:00 CST X-Sun-Spots-Digest: Volume 7, Issue 145, message 5 of 11 You can't use the r option of tar with cartridge tape tarfiles, BUT you can use it with disk tarfiles. Simply copy the tarfile from the tape to disk, add the new files, and copy the tarfile back to the tape. Here are a couple of examples: EXAMPLE 1: Tape contains a single tarfile. mt -f /dev/rst0 rewind # rewind tape cp /dev/rst0 disk.tar # get tarfile tar rvf disk.tar filea fileb filec # add other files cp disk.tar /dev/rst0 # put tarfile EXAMPLE 2: Tape contains 5 files with file #3 being the tarfile of interest. mt -f /dev/rst0 rewind # rewind tape mt -f /dev/nrst0 fsf 2 # skip over first two files cp /dev/rst0 disk.tar # get tarfile ... # ... and the tape rewinds tar rvf disk.tar filea fileb filec # add other files mt -f /dev/nrst0 fsf 5 # skip to end of tape cp disk.tar /dev/rst0 # put tarfile It's as simple as cp! Hope this helps. Michael A. Jenkins ARPA: jenkinsm@eglin-vax.arpa