From owner-freebsd-questions@FreeBSD.ORG Thu May 20 16:28:41 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 916611065673 for ; Thu, 20 May 2010 16:28:41 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2620C8FC1A for ; Thu, 20 May 2010 16:28:40 +0000 (UTC) Received: by wwb39 with SMTP id 39so1858917wwb.13 for ; Thu, 20 May 2010 09:28:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type; bh=m+K1gSbJypHOxTrGsc6noRhbxHbuurvl/JsbMwuAScI=; b=EDkRAGsRsYxcNugU6C15+dh5gcLye1m8FS19mcVlqxWn9Zst5W92Dt3bh5I1Y6Y174 ISVj42ET2EzV2t+/f9fTqAKFOp9gLJsyA0rcvIC5sXDgrntpbGn24ZGIP8nAurmExnqK tjPre1a0tDBIjBgcwGMvZ7HjIg4y6uggIQLQY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=gsNw0ny3Y77+d5pvAgKK1pOoY2eDl97ZPjfuiBIa/2IxMV/Ck3i2yQDuIBFuW6XRAV am55EajJStl0Rd2+VYa0DCvr9J9LSMgY4VrUex3z7xO+KbMk+X1uRikSe55IePRrckKK AKeMfEFVoxrjNxUjFPnlve5FK1bIMYNfuX4iA= Received: by 10.227.142.131 with SMTP id q3mr152977wbu.126.1274372919799; Thu, 20 May 2010 09:28:39 -0700 (PDT) MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.216.89.197 with HTTP; Thu, 20 May 2010 09:28:17 -0700 (PDT) In-Reply-To: References: <4BF5435F.5090509@esiee.fr> From: Ivan Voras Date: Thu, 20 May 2010 18:28:17 +0200 X-Google-Sender-Auth: PFc5MZunKFZfdfYrQ-DKhaKkDb4 Message-ID: To: Brandon Gooch Content-Type: text/plain; charset=UTF-8 Cc: Frank Bonnet , freebsd-questions Subject: Re: "real time" files mirroring ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2010 16:28:41 -0000 On 20 May 2010 16:53, Brandon Gooch wrote: > On Thu, May 20, 2010 at 9:12 AM, Frank Bonnet wrote: >> Hello >> >> I'm searching for a software that could perform some kind of real time >> mirroring between two (or more) freebsd servers. >> >> My meaning is to keep up to date some files ( flat and db maps ) used by >> Postfix on our MX servers and propagate every change of one or more >> files to all the others. > > Back in 2008, Ivan Voras wrote a rather simple daemon that fits this need: > > http://blogs.freebsdish.org/ivoras/2008/06/08/weekend-hack-adfsd-a-kqueue-assisted-rsync-tool/ > > http://ivoras.sharanet.org/stuff/adfs.tgz > > I'm not sure about the status of the code (in regard to compiling and > working with 8.x or HEAD), but it's worth a shot. I remember trying it > out last year and it worked well for the small-ish project I had > going. > > Ivan may have an informed comment or two to provide as well... I am still interested in the subject and hope to one day find enough free time to actually create something usable. Adfs was an experiment and it showed that it couldn't be done the way I wanted it. It was supposed to be rsync assisted by kqueue file events to detect changes but, among other things, change detection isn't a very demanding part of rsyncing files. In short, rsync in cron would do much better.