delete files

Brian K. White brian at aljex.com
Tue Nov 22 11:30:24 MST 2011


On 11/22/2011 6:51 AM, Paul Slootman wrote:
> On Mon 21 Nov 2011, Brian K. White wrote:
>> On 11/19/2011 9:04 AM, Francis.Montagnac at inria.fr wrote:
>>>
>>> On Tue, 15 Nov 2011 23:49:18 +0100 "Brian K. White" wrote:
>>>
>>>> nj2:/opt/x # rsync -avvvn --force --delete --include=/tmp
>>>> --include=floof/ --exclude='*' /tmp/. co4::root/tmp/.
>>>
>>> Detail: /tmp being the "root of the transfer", "--include=/tmp" is
>>> wrong because it refers then to /tmp/tmp.
>
>> root of the transfer is always "/"
>> Call it bad policy if you want but the way I'm managing a collection
>> of more or less cookie cutter boxes is, all boxes have a rsync
>> daemon running, and /etc/rsyncd.conf includes:
> [...]
>> [root]
>>          path = /
>
> No, the path of your module is /, the root of a transfer if you use
> "co4::root/tmp/." is /tmp/.  Don't confuse the two.
>
>
> Paul

got it

-- 
bkw


More information about the rsync mailing list