Answer the question
In order to leave comments, you need to log in
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
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.
Try lsync. Under the hood, it uses inotify to keep track of changed files + rsync to push changes to another host or hosts.
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
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question