inotify监听+rsync
search from google
/opt/inotify/bin/inotifywait -mrq -e create,move,delete,modify /test/www | while read file;do
rsync -uahqzt --delete --password-file=/etc/swd/rsync.secrets /test/www/ www@192.168.2.3::www
done
search from google
/opt/inotify/bin/inotifywait -mrq -e create,move,delete,modify /test/www | while read file;do
rsync -uahqzt --delete --password-file=/etc/swd/rsync.secrets /test/www/ www@192.168.2.3::www
done