home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World Interactive 1996 May / PCW_MAY_1996_LINUX_UKUUG.ISO / etc / bruxpat < prev    next >
Text File  |  1995-09-13  |  2KB  |  64 lines

  1. # This file is used by -X option to provide an inclusion/exclusion
  2. # list.  For each pathname of a file selected for backup, each line
  3. # of this file is examined for a pattern, and that pattern is applied
  4. # to the pathname.  If the pattern matches, the appropriate action
  5. # is taken (the pathname is accepted or rejected).  If the pathname
  6. # makes it through all the patterns it is accepted. 
  7. #
  8. # These patterns will ONLY be applied to filenames that are part
  9. # of directories that are specified on the bru command line (or
  10. # the current directory, if none are specified).
  11. #
  12. # Each command line in the bruxpat file (the file you are now reading)
  13. # consists of a control field and a pattern.  The pattern
  14. # is separated from the control field by whitespace.  Control field
  15. # characters are:
  16. #
  17. #    i    Include this pathname if pattern matches.  The
  18. #        pathname is accepted and no further patterns are
  19. #        applied.
  20. #                *** NOTE ****
  21. #        It stops trying on the first pattern match found
  22. #        and passes the filename.  Since it scans patterns
  23. #        in the order listed, "include" patterns normally
  24. #        should be listed before any "exclude" patterns.
  25. #
  26. #    x    Exclude this pathname if pattern matches.  The
  27. #        pathname is rejected and no further patterns are
  28. #        applied.
  29. #
  30. #    z    Exclude this pathname from compression if pattern
  31. #        matches (if the -Z option is specified).
  32. #
  33. #    s    The pattern is a shell style wildcard pattern except
  34. #        that '/' characters are not treated as special characters.
  35. #
  36. #    r    The pattern is a regular expression (same as used by the "grep"
  37. #        command).
  38. #
  39. #    l    The pattern is a literal string.
  40. #
  41.  
  42. # Exclude all core files
  43. xs    */core
  44. xs    core
  45.  
  46. # Don't try to get the stuff in /proc
  47. xs    /proc/*
  48. xs    ./proc/*
  49.  
  50. # Exclude all files and subdirectories in the temporary directories.
  51. # Handle files specified with relative and absolute pathnames
  52. #
  53. #   -- NOTE --    the actual directory names will still be backed up,
  54. #        only the files within the directories will be
  55. #        excluded.
  56. xs    ./usr/tmp/*
  57. xs    /usr/tmp/*
  58. xs    ./tmp/*
  59. xs    /tmp/*
  60.  
  61. # Don't compress files that end in ".z" or ".Z"
  62. zs    *.[Zz]
  63.