NFS or rsync for sharing files between FreeBSD servers?

Niklaas Baudet von Gersdorff stdin at
Wed Sep 7 18:42:07 UTC 2016

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

is worth the effort.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <>

More information about the freebsd-questions mailing list