home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / xenix / sco / 2588 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  1.9 KB

  1. Path: sparky!uunet!olivea!apple!apple!netcomsv!cruzio!comix!jeffl
  2. From: jeffl@comix.UUCP (Jeff Liebermann)
  3. Newsgroups: comp.unix.xenix.sco
  4. Subject: Re: Cpio and Filesystem Backup
  5. Summary: eliminating unwanted dirs from cpio backup
  6. Message-ID: <423@comix.UUCP>
  7. Date: 28 Jul 92 04:32:54 GMT
  8. References: <BrBtvD.K5o@hsi.com> <3162@ariadne.csi.forth.GR> <1992Jul17.212811.29900@crd.ge.com>
  9. Followup-To: comp.unix.xenix.sco
  10. Organization: COmmittee to Maintain Independent Xenix
  11. Lines: 37
  12.  
  13. In article <1992Jul17.212811.29900@crd.ge.com> davidsen@crd.ge.com (bill davidsen) writes:
  14. >
  15. >  This is a good idea, I'll throw out another, why not do a find on
  16. >everything and then use a simple awk script to break up the output into
  17. >several filelists, one per partition?
  18.  
  19. awk is a bit too much for the purpose intended.  This is a
  20. very simplified version of what I use to illustrate the
  21. principal.
  22.  
  23.  
  24. :
  25. # @(#) cpio.bak.root    Make backup tape from root directory using cpio.
  26. # by Jeff Liebermann  02/28/91
  27. #
  28. # Ignore anything in  /u  /v  /usr/spool/news
  29. find / -depth -print | egrep -v "^/u/|^/v/|^/usr/spool/news/" |\
  30. cpio -ocBv > /dev/rStp0
  31.  
  32.  
  33. Note that you can ignore more than just filesystems.
  34. The  find -mount  option only recognizes file systems and
  35. will not do the job within a filesystem.
  36.  
  37. The problem with this approach is that it is exessively
  38. simplistic for NFS which have filesystems mount and unmount.
  39. You can easily goof and get an extra filesystem in the
  40. backup that wasn't listed in the script.  However, since
  41. this is a Xenix newsgroup, and NFS is not available for
  42. Xenix, this should not be an issue.
  43.  
  44.  
  45. -- 
  46. # Jeff Liebermann   Box 272     1540 Jackson Ave     Ben Lomond    CA   95005
  47. # 408.336.2558 voice  wb6ssy@ki6eh.#nocal.ca.usa  wb6ssy.ampr.org [44.4.1.86]
  48. # 408.699.0483 digital_pager    73557,2074  cis [don't]
  49. # jeffl@comix.santa-cruz.ca.us  uunet!comix!jeffl  jeffl%comix@scruz.ucsc.edu
  50.