From owner-freebsd-questions@freebsd.org Fri Dec 18 18:57:26 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 674EAA4C7A9; Fri, 18 Dec 2015 18:57:26 +0000 (UTC) (envelope-from dweimer@dweimer.net) Received: from webmail.dweimer.net (24-240-198-187.static.stls.mo.charter.com [24.240.198.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1FBF31D12; Fri, 18 Dec 2015 18:57:24 +0000 (UTC) (envelope-from dweimer@dweimer.net) Received: from webmail.dweimer.local (localhost [192.168.5.2]) by webmail.dweimer.net (8.15.2/8.15.2) with ESMTPS id tBIIvHvH082482 (version=TLSv1.2 cipher=DHE-RSA-CHACHA20-POLY1305 bits=256 verify=NO); Fri, 18 Dec 2015 12:57:17 -0600 (CST) (envelope-from dweimer@dweimer.net) Received: (from www@localhost) by webmail.dweimer.local (8.15.2/8.15.2/Submit) id tBIIvHPW082481; Fri, 18 Dec 2015 12:57:17 -0600 (CST) (envelope-from dweimer@dweimer.net) X-Authentication-Warning: webmail.dweimer.local: www set sender to dweimer@dweimer.net using -f To: Jeremy Gransden Subject: Re: Mirroring samba file server. X-PHP-Script: www.dweimer.net/webmail/index.php for 71.86.41.122, 192.168.5.3 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 18 Dec 2015 12:57:17 -0600 From: dweimer Cc: freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org Organization: dweimer.net Reply-To: dweimer@dweimer.net Mail-Reply-To: dweimer@dweimer.net In-Reply-To: References: Message-ID: <54e56a60ef4e4b51fbdc137f037a60c0@dweimer.net> X-Sender: dweimer@dweimer.net User-Agent: Roundcube Webmail/1.1.3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Dec 2015 18:57:26 -0000 On 2015-12-18 12:32 pm, Jeremy Gransden wrote: > I have a network with 8 remote sites. 7 of the 8 can use the main > samba file server without much issue with latency. I have one location > where the latency is really high. I was thinking of adding a 2nd samba > server in that location and mirroring the 1st one. Has anyone done a > setup similar to this? What should I use to sync the 2 servers? Both > servers will be running FreeBSD 10.2 on ZFS. Would zfs send/receive > work on live data or would rsync be better? > > > thanks for your help, > j You need to describe more about what you are trying to do, I don't believe neither ZFS send/receive or rsync will work if you want to be able to edit data on both and keep them in sync. However if the remote server is going to serve read only reference data for the site, and changes are only made to the parent they will work. However ZFS may require the receiving dataset to be dismounted in order to receive the changes, but I could be wrong. You may also want to look at /usr/ports/net/unison: cat /usr/ports/net/unison/pkg-descr Unison is a file-synchronization tool for Unix and Windows. 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). -- Thanks, Dean E. Weimer http://www.dweimer.net/