home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.sun.misc:4145 comp.sys.sun.hardware:4295 comp.unix.solaris:206
- Newsgroups: comp.sys.sun.misc,comp.sys.sun.hardware,comp.unix.solaris
- Path: sparky!uunet!spool.mu.edu!darwin.sura.net!ukma!cs.widener.edu!eff!world!tombaker
- From: tombaker@world.std.com (Tom A Baker)
- Subject: Re: Adding to a TAR tape
- Message-ID: <BuB4rL.HCt@world.std.com>
- Keywords: tar tape
- Organization: The World Public Access UNIX, Brookline, MA
- References: <lsloan.715963681@nova>
- Date: Wed, 9 Sep 1992 10:50:08 GMT
- Lines: 34
-
- In article <lsloan.715963681@nova> lsloan@nova.gmi.edu (Lance Sloan) writes:
- >I am using a Sun SPARCserver 4/490 with an 8mm tape drive on /dev/rst0.
- >I can use tar to put files on the tape, but I cannot add files to the tape
- >after the initial tar.
- >
- >For example, I tar several files to the tape and later want to add a file
- >to the end of the existing tar file. The u (update) and r (write) options
- >to tar return errors.
- >
- >Any help would be greatly appreciated.
- >
- >Thanks,
- >Lance Sloan
- >lsloan@nova.gmi.edu
- >
-
- (I am posting, a.o.t. email, because I am asking a query myself.)
-
-
- The way I used to do this was to use the command: mt fsf 1
-
- The tarfile looks like any other file on a tape. Just position the
- tape past the end-of-file mark, and start a new tarfile ...
-
- $ tar cvf /dev/rst8 .. (first tarfile)
- $ mt -f /dev/rst8 rew (rewind)
- $ mt -f /dev/rst8 fsf 1 (position past first file)
- $ tar cvf /dev/rst8 .. (second tarfile)
-
- 1. Doesn't this work under Solaris, or ...?
-
- 2. Did you really need to extend the _tarfile_?
-
-
-