<div class="gmail_quote">On Tue, Mar 15, 2011 at 7:41 AM, Jean-Christophe Guillain <span dir="ltr">&lt;<a href="mailto:jc.guillain@gmail.com">jc.guillain@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
$ rsync -aH --del --ignore-errors --filter=&quot;- /lost+found/*&quot; --filter=&quot;- /.snapshot/*&quot; /data/orig_disks/vol-opt/ /data/bckp_disks/vol-opt/<br></blockquote><div><br></div><div>Note that it is more efficient to leave off the trailing &#39;*&#39; so that the directory is excluded rather than the contents of the directory.  With the &#39;*&#39;, rsync has to list the dir&#39;s contents and see if it matches the exclude or not.  However, that has the side effect of not creating (empty) lost+found and .snapshot dirs on the destination if they don&#39;t already exist.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">rsync     1599        root    3r      DIR               0,25    12288   12117707 /data/orig_disks/vol-opt/opt/.snapshot/some/directory/somefile<br>
</blockquote><div><br></div><div>That .snaptshot doesn&#39;t match your excludes since it&#39;s down inside the opt subdir, not at the root of the transfer.  If you want to exclude .snapshot dirs anywhere in the tree, leave off the leading slash.  If you want to exclude that dir in particular, add the missing /opt prefix.</div>
<div><br></div></div>..wayne..<br>