<div class="gmail_quote">On Fri, Jan 1, 2010 at 7:46 AM, Giampaolo Tomassoni <span dir="ltr"><<a href="mailto:Giampaolo@tomassoni.biz">Giampaolo@tomassoni.biz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
'--filter=-!r /srv/vhome/*/users/*/.mail/' user@oldserver:/srv/vhome /srv/<br></blockquote></div><div><br></div>See the manpage discussion of anchoring at the top-level of the transfer for why your filter rule should not have a "/srv" prefix. The 'r' modifier makes the rule only apply on the receiving side, which means you're specifying a protect rule to prevent removal of files, but does not stop the files from being copied. The '!' modifier negates the match, which makes it protect everything from deletion except .mail dirs (though, since its anchored wrong, it would seem to protect everything from deletion).<div>
<br></div><div>Perhaps you wanted to specify --filter='- /vhome/*/users/*/.mail/' (for both excluding and deleting of that dir)? If not -- if you're really trying to copy just hte .mail dirs, you have a lot more things to change.<br clear="all">
<br>..wayne..<br>
</div>