This commit is contained in:
parent
bddf226431
commit
5efdca7b3f
@ -5,7 +5,7 @@ if [ "$RUN_ONCE" = "true" ]; then
|
|||||||
rsync -az --info=progress "$SOURCE_DIR" "$TARGET_DIR"
|
rsync -az --info=progress "$SOURCE_DIR" "$TARGET_DIR"
|
||||||
else
|
else
|
||||||
cat /proc/sys/fs/inotify/max_user_watches
|
cat /proc/sys/fs/inotify/max_user_watches
|
||||||
while inotifywait -r -e modify,create,delete,move $SOURCE_DIR; do
|
while inotifywait -r -e modify,create,delete,move "$SOURCE_DIR"; do
|
||||||
rsync -az --info=progress "$SOURCE_DIR" "$TARGET_DIR"
|
rsync -az --info=progress "$SOURCE_DIR" "$TARGET_DIR"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user