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