From bb7e4642d5e4dee322b76556eb020e1ab2f8b649 Mon Sep 17 00:00:00 2001 From: deajan Date: Mon, 18 Nov 2013 22:50:07 +0100 Subject: [PATCH] Added file monitor mode --- osync.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osync.sh b/osync.sh index 96b395b..f8d04e6 100755 --- a/osync.sh +++ b/osync.sh @@ -3,7 +3,7 @@ ###### Osync - Rsync based two way sync engine with fault tolerance ###### (L) 2013 by Orsiris "Ozy" de Jong (www.netpower.fr) OSYNC_VERSION=0.99RC2-qs -OSYNC_BUILD=1811201301 +OSYNC_BUILD=1811201303 DEBUG=no SCRIPT_PID=$$ @@ -1689,6 +1689,8 @@ function SyncOnChanges exit 1 fi + Log "Running Osync in file monitor mode." + while true do inotifywait --exclude $OSYNC_DIR $RSYNC_EXCLUDE -qq -r -e create -e modify -e delete -e move -e attrib "$MASTER_SYNC_DIR/"