Added file monitor mode
This commit is contained in:
parent
8a16a2233e
commit
bb7e4642d5
4
osync.sh
4
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/"
|
||||
|
|
Loading…
Reference in New Issue