home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10484 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.8 KB

  1. Path: sparky!uunet!dtix!mimsy!afterlife!adm!news
  2. From: flynn@nematic.kent.edu (Mark Flynn)
  3. Newsgroups: comp.unix.questions
  4. Subject: Going nuts over tar X option
  5. Message-ID: <32263@adm.brl.mil>
  6. Date: 28 Aug 92 21:18:42 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 41
  9.  
  10. I'm trying to backup our system using tar. This is on a Sun SparcStation II
  11. running SunOS4.1.2. The tape drive is on another machine, so I have a litle
  12. script:
  13.  
  14. echo "Performing backup on $* to Scorpio..."
  15. echo "Rewinding tape..."
  16. rsh scorpio mt -f/dev/rmt0 rewind
  17. echo "Now to work..."
  18. tar -cvfX - /etc/local/xclude.tar $* | rsh scorpio dd of=/dev/rmt0 bs=1024b
  19. conv\
  20. =block
  21.  
  22. So, executing this with argument "/" will dump the whole lot.
  23.  
  24. Now, the problem. The X option is there because we have AnswerBook
  25. installed. There's some funky file in the /usr/AnswerBook directory which
  26. claims (with ls -l) to have a size of some 400Meg. It doesn't, cause the
  27. partition isn't that big. My guess is that it's some sort of hook into the
  28. cd-resident data. Anyways, dd on the remote machine croaks with the message:
  29.  
  30. a //usr/AnswerBook/OLSPEC.pag 863706 blocks
  31. dd: 0511-065 Requested a write of 524288 bytes, but wrote only 230912.
  32. dd: 0+642838 records in.
  33. dd: 2240+0 records out.
  34.  
  35. and the thing stops. OK, I say, I'll use the X option on tar. So I have a
  36. file (xclude.tar) which contains one line:
  37.  
  38. /usr/AnswerBook
  39.  
  40. But this didn't exclude anything! After R-ingTFM more carefully, I saw that
  41. I had to be careful to not leave any whitespace after the directory name.
  42. Alas, the result was the same. The odd thing is that if I execute the script
  43. with arguement /usr or /usr/AnswerBook, it is excluded. But when I pass the
  44. arguement /, it seems to ignore the exclude file. Is there some known bug?
  45. Is there a problem with spanning partitions? Any suggestions?
  46.  
  47. Mark Flynn
  48. Liquid Crystal Institute
  49. Kent State University
  50. flynn@nematic.kent.edu
  51.