rsync: connection unexpectedly closed (0 bytes received so far)

Bruce Korb bruce.korb at gmail.com
Tue Mar 23 18:34:53 MDT 2010


OK, I'm feeling stupid.  I was pouring over the rsyncd.conf man page and there
was no discussion of filter rules, so I was guessing based on the
"filter" clause
description, not the "FILTER RULES" section of rsync.1.  Really sorry.
Much clearer now.......

On Tue, Mar 23, 2010 at 5:25 PM, Matt McCutchen <matt at mattmccutchen.net> wrote:
> On Tue, 2010-03-23 at 17:12 -0700, Bruce Korb wrote:
>> Fixing a spelling error for the log file name gets me the log text,
>> but not anything I understand:
>>
>> Unknown filter rule:  `/gdoc/***'
>>
>> OK, I am trying to ensure that files pushed to the "doc" module all start
>> with the prefix "/gdoc/".  My reading of the docs seems to say to me that
>> this is the way to do it.  How do I do it?  :)
>
> Filter rules must be of one of the types listed in the "FILTER RULES"
> section of the man page.  I would recommend the following parameter:
>
> filter = + /gdoc/*** - /**
>
> The following parameters would also work, but they rely on rsync's
> special case that never allows the root directory to be excluded, which
> I consider poor style:
>
> filter = -! /gdoc/***
> filter = + /gdoc/*** - /***
>
> Or, you could just change the module path to point to the "gdoc"
> directory.
>
> --
> Matt
>
>


More information about the rsync mailing list