%% [EMAIL PROTECTED] writes:

  j> rsync -ca --delete --exclude "/proc/" --exclude "/dev/" --exclude
  j> "/mnt/"  --exclude "/progs/" [EMAIL PROTECTED]::gates /data/gates

  j> To clarify, would the above example exclude /progs and also
  j> /data/progs/ or just the /progs directory from the root?  Thanks!

Just a directory named /progs (/proc, /dev, /mnt).  Man page sez:

       o      if the pattern starts with a / then it  is  matched
              against  the start of the filename, otherwise it is
              matched against the  end  of  the  filename.   Thus
              "/foo"  would match a file called "foo" at the base
              of the tree.  On the other hand, "foo" would  match
              any  file called "foo" anywhere in the tree [...]

       o      if the pattern ends with a  /  then  it  will  only
              match a directory, not a file, link or device.

HTH!

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>    HASMAT--HA Software Methods & Tools
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.

Reply via email to