home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sun / misc / 4145 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.5 KB

  1. Xref: sparky comp.sys.sun.misc:4145 comp.sys.sun.hardware:4295 comp.unix.solaris:206
  2. Newsgroups: comp.sys.sun.misc,comp.sys.sun.hardware,comp.unix.solaris
  3. Path: sparky!uunet!spool.mu.edu!darwin.sura.net!ukma!cs.widener.edu!eff!world!tombaker
  4. From: tombaker@world.std.com (Tom A Baker)
  5. Subject: Re: Adding to a TAR tape
  6. Message-ID: <BuB4rL.HCt@world.std.com>
  7. Keywords: tar tape
  8. Organization: The World Public Access UNIX, Brookline, MA
  9. References: <lsloan.715963681@nova>
  10. Date: Wed, 9 Sep 1992 10:50:08 GMT
  11. Lines: 34
  12.  
  13. In article <lsloan.715963681@nova> lsloan@nova.gmi.edu (Lance Sloan) writes:
  14. >I am using a Sun SPARCserver 4/490 with an 8mm tape drive on /dev/rst0.
  15. >I can use tar to put files on the tape, but I cannot add files to the tape
  16. >after the initial tar.
  17. >
  18. >For example, I tar several files to the tape and later want to add a file
  19. >to the end of the existing tar file.  The u (update) and r (write) options
  20. >to tar return errors.
  21. >
  22. >Any help would be greatly appreciated.
  23. >
  24. >Thanks,
  25. >Lance Sloan
  26. >lsloan@nova.gmi.edu
  27. >
  28.  
  29. (I am posting, a.o.t. email, because I am asking a query myself.)
  30.  
  31.  
  32. The way I used to do this was to use the command:  mt fsf 1
  33.  
  34. The tarfile looks like any other file on a tape.  Just position the
  35. tape past the end-of-file mark, and start a new tarfile ...
  36.  
  37.     $ tar cvf /dev/rst8 ..      (first tarfile)
  38.     $ mt -f /dev/rst8 rew       (rewind)
  39.     $ mt -f /dev/rst8 fsf 1     (position past first file)
  40.     $ tar cvf /dev/rst8 ..      (second tarfile)
  41.  
  42. 1. Doesn't this work under Solaris, or ...?
  43.  
  44. 2. Did you really need to extend the _tarfile_?
  45.  
  46.  
  47.