| SYNK(1) | General Commands Manual | SYNK(1) |
synk — synchronize
files between multiple hosts
synk |
[-sv] [-f
file] [-p
port] [-h
host] file.. |
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
needed).
When synk starts up, it reads the peer
list from a configuration file, typically
synk.conf(5), unless peers
are specified on the command line.
-ssynk listen for
incomming connections on the address given by host and
port. This is used internally by synk and
should never be called by the user.-vsynk will log informative messages to stderr.-f
filesynk use file as the
configuration file, instead of the default
/etc/synk.conf.-p
port-h
hostsynk from 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 -p flag before each
-f flag (see
EXAMPLES for use cases).synk configuration fileSynchronize a file between all peers listed in /etc/synk.conf:
synk /etc/hostsSynchronize 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/.profileWilly Goiffon <dev@z3bra.org>
| 2016-09-08 | POSIX.1-2008 |