On Fri, Jan 1, 2010 at 7:46 AM, Giampaolo Tomassoni <[email protected]
> wrote:

> '--filter=-!r /srv/vhome/*/users/*/.mail/' u...@oldserver:/srv/vhome /srv/
>

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).

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.

..wayne..
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to