home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / dos / extra / docs / maillist / text / archive.96 / text6583.txt < prev    next >
Encoding:
Text File  |  1996-07-25  |  2.3 KB  |  69 lines

  1.     id m0uMU4f-0007tAa; Thu, 23 May 96 00:40 MDT
  2. Sender: owner-executor
  3. Received: by ftp.ardi.com (Smail3.1.29.1 #3)
  4.     id m0uMU2t-0007tBC; Thu, 23 May 96 00:38 MDT
  5. Received: from raven.ots.utexas.edu (osiris@localhost [127.0.0.1]) by raven.ots.utexas.edu (8.7.5/8.7.3) with ESMTP id BAA02307; Thu, 23 May 1996 01:38:24 -0500
  6. Message-id: <199605230638.BAA02307@raven.ots.utexas.edu>
  7. Subject: Re: How to backup an executor partition?? 
  8. Cc: executor@ardi.com
  9. In-reply-to: Your message of "Tue, 21 May 1996 22:55:27 EDT."
  10. To: Vincent Cojot <coyote@step.polymtl.ca>
  11. From: Rob Browning <osiris@cs.utexas.edu>
  12. Date: Thu, 23 May 1996 01:38:23 -0500
  13. Sender: owner-executor@ardi.com
  14. Precedence: bulk
  15.  
  16. >>>>> "V" == Vincent Cojot <coyote@step.polymtl.ca> writes:
  17.  
  18. V> My command line looks like (it's a short example in which I am
  19. V> trying to backup .../ExecutorVolume/Programs/Execl 4.0 to show the
  20. V> problem):
  21.  
  22. V> palanthas:~$ tar --null -cvzf /tmp/test.tgz
  23. V> /usr/local/lib/executor/ExecutorVolume/Programs/Ex*
  24.  
  25. As far as I can tell, this is not a problem with tar.  I bet if you
  26. issue the command
  27.  
  28. tar --null -cvzf /tmp/test.tgz \
  29.   /usr/local/lib/executor/ExecutorVolume/Programs
  30.  
  31. you'll have no problems.  The problem you are having is not with tar,
  32. but with file name expansion done by the shell.  When you say
  33. something like 
  34.  
  35. somedir/Programs/Ex*
  36.  
  37. The shell expands it into soemthing like 
  38.  
  39. somedir/Programs/Excel 4.0 SomeFile somedir/Programs/Excel 4.0 AnotherFile
  40.  
  41. and hands this to tar on its command line.  Note that tar sees this
  42. line as 6 files (listed below separated by newlines for clarity): 
  43.  
  44. stuff/Programs/Excel
  45. 4.0
  46. SomeFile
  47. stuff/Programs/Excel
  48. 4.0
  49. AnotherFile
  50.  
  51. using --null doesn't help here because the program feeding the names
  52. to tar, the shell, isn't using null termination.  I'm not even sure it
  53. does what you want since --null is mostly meant for use with the
  54. --files-from option.
  55.  
  56. So, how do you fix it?  One option is to not use the shell for
  57. filename expansion.  Instead use find.  You could get essentially the
  58. same effect with find and tar like this:
  59.  
  60. find /usr/local/lib/executor/ExecutorVolume/Programs --name "Ex*" \
  61.   -print0 | tar --null --files-from - czf /tmp/test.tgz
  62.  
  63. I think that's right...
  64.  
  65. Anyway, good luck.
  66. --
  67. Rob
  68.  
  69.