From owner-freebsd-questions@freebsd.org Wed Sep 7 18:42:07 2016 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 96476BCF080 for ; Wed, 7 Sep 2016 18:42:07 +0000 (UTC) (envelope-from stdin@niklaas.eu) Received: from mx.box-hlm-03.niklaas.eu (box-hlm-03.niklaas.eu [IPv6:2a02:2770:15:0:21a:4aff:feaa:e902]) by mx1.freebsd.org (Postfix) with ESMTP id 64872186F for ; Wed, 7 Sep 2016 18:42:07 +0000 (UTC) (envelope-from stdin@niklaas.eu) Received: from len-t420.klaas (p200300752F7E431379ADB80B6BEB43E7.dip0.t-ipconnect.de [IPv6:2003:75:2f7e:4313:79ad:b80b:6beb:43e7]) by mx.box-hlm-03.niklaas.eu (Postfix) with ESMTPSA id 52CB04F99A8 for ; Wed, 7 Sep 2016 20:41:55 +0200 (CEST) Date: Wed, 7 Sep 2016 20:41:46 +0200 From: Niklaas Baudet von Gersdorff To: freebsd-questions@freebsd.org Subject: Re: NFS or rsync for sharing files between FreeBSD servers? Message-ID: <20160907184145.GA9270@len-t420.klaas> Reply-To: stdin@niklaas.eu Mail-Followup-To: freebsd-questions@freebsd.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0 (2016-04-01) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2016 18:42:07 -0000 --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Amitabh Kant [2016-09-07 21:39 +0530] : > We need to keep the directories in sync on all three servers. Currently, we > run a rsync command every time there is a change in one of the > files/directories. Sometimes it does happen that we forget to run the rsync > script making one of the servers return old versions. Try net/csync2. I'm very happy with it. It's fast and it does its job very well. It supports encrypting the connection between the nodes. (Since my cluster is connected through a VPN established by security/tinc, I disabled it though.) In its configuration file you decide which files/folders you want to keep synced. I supports resolving conflicts automagically (as far as such a process can be automatic). You can set up master and slave nodes i.e., you push from one to others; or you can set up all master i.e., pushing changes from any node to the others. Reading the paper about it http://oss.linbit.com/csync2/paper.pdf is worth the effort. Niklaas --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJX0F9mAAoJEG2fODeJrIU/wmQP/0aLx1vw9rJHw2PfkS6PZh5t 6K4s1ljQZiY4Jitge44BpOqu9s2zpI2gO2ZTzmDQNH6oaSsn6pIfS9ksJAXQYVga 1V3IM9PlfcF5/oYUM6dauAGiuDBpmSoz6QG3w7bZP2m9P/p2rk+Au9ebtQKVqrUe lN/0keRbClkD5b3Fxz4c4MTDwumw3Ein2xB/fAAYzP0fu+ZRyihBrj2zvYVHWSU/ oiQH1pfGgiiMOt80TASr1gDKJStN/wLqocyCf6kMxoFokkzd00iy3ytCrDAII2q9 IElr/Vr6vAbLSOYlAyr+90lsQTUwjgiqoVfojXHZVuknnnoIaD0rjsqyZfxs42c0 p3VKvtuoGI6fMFturG5U+wFNi5Lqnewwm/kc3P/9nHQsmWH8dNw5C/na/kwNn6mt 7eG0DB9XiVfIs9EwRGzo1OKR0IIYKrQ3fm3hbD7ERWU5mJL/joMwJ8NzO1UKUgSi qnKZQ2NERp/pwWves7fE2x6uXs0CLgUNrYkN8/8hdo3UCD4Z3rvm65U94YGEjYx1 Eymmaz3rth5eEd4ONQ//nef5Hp7kYyxgRRXW//T3+Jjb3YzHrI+/ERljtMMtRtbg XaqeZ2oMCug0bt2uxLyd33U8PRewavR1w5VwWn5XBvLAMZZSyzjJ1lOkYLJsBTZO xzu1v5dd/kHR9hmwzoMR =zzCz -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr--