|SYNK(1)||General Commands Manual||SYNK(1)|
synk — synchronize
files between multiple hosts
synk will connect to the given peers,
retrieve the sha512 / mtime of file on each host and,
if the hashes differ at some point,
rsync(1) the most recent version
from the host (master) to all other peers. In case the master is not
localhost, ssh(1) will be used to
spawn a remote rsync(1) command
between the master and each slave (except for localhost as it's not
synk starts up, it reads the peer
list from a configuration file, typically
synk.conf(5), unless peers
are specified on the command line.
synklisten for incomming connections on the address given by host and port. This is used internally by
synkand should never be called by the user.
synkwill log informative messages to stderr.
synkuse file as the configuration file, instead of the default /etc/synk.conf.
synkfrom parsing synk.conf(5). file with. Peers are added as they are parsed on the command line, which means that you can have different host listen on different port by calling the
-pflag before each
-fflag (see EXAMPLES for use cases).
Synchronize a file between all peers listed in /etc/synk.conf:
Synchronize a file with two peers, using different ports for each:
synk -p 1234 -h 172.16.0.100 -p 5678 -h 172.16.0.101 $HOME/.profile
Willy Goiffon <firstname.lastname@example.org>