From owner-freebsd-questions@freebsd.org Mon Dec 21 15:19:45 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 BF5FCA4EE25 for ; Mon, 21 Dec 2015 15:19:45 +0000 (UTC) (envelope-from jeremy.gransden@gmail.com) Received: from mail-io0-x233.google.com (mail-io0-x233.google.com [IPv6:2607:f8b0:4001:c06::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9216918C2 for ; Mon, 21 Dec 2015 15:19:45 +0000 (UTC) (envelope-from jeremy.gransden@gmail.com) Received: by mail-io0-x233.google.com with SMTP id 186so159371578iow.0 for ; Mon, 21 Dec 2015 07:19:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=P+oLrLa0SNSpD42w5GtGymVZQGeQBSy6D5bzrIwmHfA=; b=g1K0Aa+mXHvMs0nyYtUWG8HSs9tHfxXqfjg4azdaLAQ+SHFU5M7P07XOShST8aiIaZ vLLXoqkTrBKsGa9wYEvIIbDj1ZB4xOgTsTMyM4DjiTrtAiJx/pa4PlyqWXpi0LkPJi0L k+DtFZhgPRuIvPnkRRAveGPw/F+JBJeXx2RJKNSLoDJ/sqJ4rE6b/Rk/uhaFRRT+QYmC PAg1VokF1LFLGll8TxWeSzZzmOm93/DYr94wZnd9H5hrAuyVWAq6p5SwryJb2XaL96wE Wn45lnE9MY/58iENGKjrS2m30xEwtFK/MnWurF0RrGiJH9+I1YDb2geqor9aZnfYnMuK b1KA== MIME-Version: 1.0 X-Received: by 10.107.4.213 with SMTP id 204mr22457817ioe.195.1450711184857; Mon, 21 Dec 2015 07:19:44 -0800 (PST) Received: by 10.107.7.38 with HTTP; Mon, 21 Dec 2015 07:19:44 -0800 (PST) In-Reply-To: <54e56a60ef4e4b51fbdc137f037a60c0@dweimer.net> References: <54e56a60ef4e4b51fbdc137f037a60c0@dweimer.net> Date: Mon, 21 Dec 2015 10:19:44 -0500 Message-ID: Subject: Re: Mirroring samba file server. From: Jeremy Gransden To: dweimer@dweimer.net Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 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: Mon, 21 Dec 2015 15:19:45 -0000 This looks like what I need. thank you, j
This email has been sent from a virus-free computer protected by Avast.
www.avast.com
On Fri, Dec 18, 2015 at 1:57 PM, dweimer wrote: > 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/