From owner-freebsd-isp@FreeBSD.ORG Tue May 27 06:59:05 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B46537B401 for ; Tue, 27 May 2003 06:59:05 -0700 (PDT) Received: from Shenton.org (23.ebbed1.client.atlantech.net [209.190.235.35]) by mx1.FreeBSD.org (Postfix) with SMTP id 0953B43F85 for ; Tue, 27 May 2003 06:59:04 -0700 (PDT) (envelope-from chris@Shenton.Org) Received: (qmail 198 invoked by uid 1000); 27 May 2003 13:59:01 -0000 To: nbari@unixmexico.com References: <2217.148.243.211.187.1054021261.squirrel@mail.unixmexico.com> <1054021870.3ed318ee732fb@www.digitalinscription.net> <2404.148.243.211.187.1054023759.squirrel@mail.unixmexico.com> From: Chris Shenton Date: 27 May 2003 09:59:01 -0400 In-Reply-To: <2404.148.243.211.187.1054023759.squirrel@mail.unixmexico.com> Message-ID: <87u1bgo5i2.fsf@Pectopah.shenton.org> Lines: 33 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-isp@freebsd.org Subject: Re: replicating data over 2 servers X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2003 13:59:05 -0000 nbari@unixmexico.com writes: > the problem when using rsync in both servers is that if data on server A > is updated, and data on server B is updated at the same time, there is a > chance to lost data. > > If a user writes to a file on server A and then rsyn is executed data will > be lost, and so if a users writees on server B an rsync tryis to fecth > from server A data will be lost I haven't used this yet but it sounds like it fits the bill: http://www.cis.upenn.edu/~bcpierce/unison/ Unison is a file-synchronization tool for Unix and Windows. (It also works on OSX to some extent, but it does not yet deal with 'resource forks' correctly; more information on OSX usage can be found on the unison-users mailing list archives.) It allows two replicas of a collection of files and directories to be stored on different hosts (or different disks on the same host), modified separately, and then brought up to date by propagating the changes in each replica to the other. Unison shares a number of features with tools such as configuration management packages (CVS, PRCS, etc.), distributed filesystems (Coda, etc.), uni-directional mirroring utilities (rsync, etc.), and other synchronizers (Intellisync, Reconcile, etc). However, there are several points where it differs: [...] It's in /usr/ports/net/unison