Mirror and sync one or more remote folders with one or more local folders
.gitignore | ||
.synccmd.sh | ||
masync | ||
README.md | ||
syncloop.sh |
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