--filter, missing in action.

Teodor MICU teodor.micu at museglobal.ro
Thu Apr 23 15:01:46 GMT 2009

On Thu, 23 Apr 2009 14:02:26 +0200
istrice <istrice at autistici.org> wrote:
> I must be seriously misunderstanding the man page coverage of --filter.
> If I have a dir 'foo/' in the reciver with content 'bar' that I must
> keep and a 'foo/' on the sender side empty what could possibly be the
> best way to get the job done?

Until now I've done this by adding "- foo/" on the exclude file. With this
line rsync will not touch any "foo/" directory on the receiver.

I don't see yet the advantage of using "--filter" over "--exclude" but I
hope someone can give a practical example.


More information about the rsync mailing list