<div class="gmail_quote">On Tue, Jan 18, 2011 at 11:27 AM, Jeff Hansen <span dir="ltr">&lt;<a href="mailto:jhansen@cardaccess-inc.com">jhansen@cardaccess-inc.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


  
    
    
  
  <div bgcolor="#ffffff" text="#000000"><div class="im">I hate to beat an (apparently) dead horse, but I&#39;ve tested this
    patch on several systems and I would really appreciate it if this
    patch (or some variation of it) went into mainline.</div></div></blockquote><div><br></div><div>You patch just prevents recursing into subdirectories of the directories mentioned as command-line args, which can be accomplished several different ways, including an exclude:</div>
<div><br></div><div>rsync -aiv --exclude=&#39;/*/*/*&#39; src1 src2 /dest/</div><div><br></div><div>as well as using -d with --no-r as long as the source dirs have a trailing slash.  For instance:</div><div><br></div><div>
rsync -aivd --no-r src/ /dest/src/</div><div><br></div><div>or a multiple source dir example of -d --no-r combined with -R:</div><div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div class="gmail_quote">
<div>rsync -aivdR --no-r src1/ src2/ /path/./something/deeper/ /dest/</div><div><br></div><div>See also --files-from (which is essentially the same as the -d --no-R examples, with trailing slashes needed on the dirs mentioned in the input file that should include their contents).</div>
<div><br></div></div></div></div>I can think of no nice, portable way to discover bind mounts, so I&#39;ll leave it up to the user to tell rsync which dirs to elide.<div><br>..wayne..<br>
</div>