synk

synchronize files between hosts
Log | Files | Refs | README

commit bc0015b7394a71bac114b9f8f836d27f6b3de890
Author: Willy <willyatmailoodotorg>
Date:   Fri Aug 12 02:15:11 +0200

First commit: basic idea

Diffstat:
README | 35+++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+), 0 deletions(-)
diff --git a/README b/README @@ -0,0 +1,35 @@ +synk +==== + +Synchronize a bunch of files between different hosts. + +* active/passive replication +* daemon mode using inotify(1) +* one-shot mode for cron(1) +* spawn rsync(1) processes + +usage +----- + + # hostname + phobos.z3bra.org + + # pg <<EOF > /etc/synk.conf + phobos.z3bra.org + apophis.z3bra.org + doom.z3bra.org + EOF + + $ synk -v $HOME/file + phobos.z3bra.org:/home/z3bra/file 1464274181 + apophis.z3bra.org:/home/z3bra/file 1464260388 + doom.z3bra.org:/home/z3bra/file 1464273098 + LATEST: phobos.z3bra.org + synk: rsync -azEq --delete phobos.z3bra.org:/home/z3bra/file apophis.z3bra.org:/home/z3bra/file + synk: rsync -azEq --delete phobos.z3bra.org:/home/z3bra/file doom.z3bra.org:/home/z3bra/file + + $ synk -v $HOME/file + phobos.z3bra.org:/home/z3bra/file 1464274181 + apophis.z3bra.org:/home/z3bra/file 1464274181 + doom.z3bra.org:/home/z3bra/file 1464274181 + SYNKED!