E
E
entermix2016-11-19 17:41:08
linux
entermix, 2016-11-19 17:41:08

What software to use to synchronize files between servers?

There are several servers, I want to set up full synchronization of the configuration files of the main software and projects www/ - these are several sites where users can upload files
. in case of changing/deleting/adding files on one of the servers in certain directories, all actions must be performed on the others.
The question is rather to those who set up similar cases. As I understand it, the most popular options are csync2, or unison, please tell me what to choose? Why?
UPD: rsync, git to deploy the project is all wrong, I need something like database replication, I make changes (add/delete/change files) on one server (it doesn’t matter which one), and information is rolled automatically on all the others . All this can be done using csync2, or unison, for example, I would like to hear the answers of those who have solved similar problems.

Answer the question

In order to leave comments, you need to log in

9 answer(s)
E
Erelecano Oioraen, 2016-11-20
@entermix

syncthing is what you are looking for.

O
OnYourLips, 2016-11-19
@OnYourLips

Maybe you should think about configuration management tools, in which you describe the infrastructure with code, and then simply bring the servers into the desired state by running? It is much more convenient, simpler and more reliable.
Look towards Ansible.

A
Alex, 2016-11-24
@nesterwsx

Try lsync. Under the hood, it uses inotify to keep track of changed files + rsync to push changes to another host or hosts.

D
Dimonchik, 2016-11-19
@dimonchik2013

for an adult: docs.ansible.com/ansible/git_module.html
if you are an admin, then study it, justified investment,
but in a simple way - any file synchronization, maybe this is enough for your tasks

X
xmoonlight, 2016-11-20
@xmoonlight

helix.apache.org

V
Vladimir, 2016-11-20
@MechanID

if you want something simple and home-made, then - through inotify we monitor changes further with something - to your taste, we deliver them to neighboring servers

B
bnytiki, 2016-11-20
@bnytiki

Ceph

M
Maxim Timofeev, 2017-02-24
@webinar

numbers and letters

E
Eugene Khrustalev, 2017-02-24
@eugenehr

Base64?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question