# masync Masync allows you to mirror and keep synchronised an arbitraries number of folders on one or more remote servers with local folders. ## dependencies Masync use inotifywait for listening changes on local folders and keep it in sync with remote folders. Before using it, please install **inotify-tools** package on your favorite distribution ``` apt-get install inotify-tools dnf install inotify-tools xbps-install -S inotify-tools ... ``` You must have access to the servers containing the remote folders via ssh and a private key, so * install the ssh daemon on your server * generate a key pair with ssh-keygen * add the public key to the authorised keys on server side * edit the ssh config so that you can access with ssh to the server ## How to use Copy files *masync*, *syncloop.sh* and *.synccmd.sh* in `~/bin/` make sure in the .bashrc there is something like this `export PATH=~/bin/:$PATH`