rsync+inotify时时同步

 1、同步配置

http://rsync.samba.org/
wget http://rsync.samba.org/ftp/rsync/rsync-3.0.9.tar.gz
http://sourceforge.net/projects/inotify-tools/
wget http://cloud.github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gz

tar -zxvf inotify-tools-3.14.tar.gz  
tar -zxvf rsync-3.0.9.tar.gz 

inotify安装条件:
Linux系统内核是否达到了 2.6.13以上
# ls -lsart /proc/sys/fs/inotify
 0
0 dr-xr-xr-x 7 root root 0 11-11 20:11 ..
0 dr-xr-xr-x 2 root root 0 01-09 22:29 .
0 -rw-r--r-- 1 root root 0 01-09 22:30 max_user_watches
0 -rw-r--r-- 1 root root 0 01-10 11:44 max_user_instances
0 -rw-r--r-- 1 root root 0 01-10 11:44 max_queued_events
如上说明支持

cd inotify-tools-3.14
mkdir /app/soft
./configure --prefix=/app/soft/inotify-tools-3.14
make
make install

cd rsync-3.0.9
./configure --prefix=/app/soft/rsync-3.0.9
make
make install 

你可能感兴趣的:(职场,休闲)