Mirror and sync one or more remote folders with one or more local folders
Go to file
Amber 5b249d0f13 option --delete on resume(start) a sync 2021-06-16 22:00:36 +02:00
.gitignore licencing gplv3 2021-06-12 21:48:13 +02:00
.synccmd.sh licencing gplv3 2021-06-12 21:48:13 +02:00
README.md option --delete on resume(start) a sync 2021-06-16 22:00:36 +02:00
masync option --delete on resume(start) a sync 2021-06-16 22:00:36 +02:00
syncloop.sh option --delete on resume(start) a sync 2021-06-16 22:00:36 +02:00

README.md

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