sersync 配置方法

#mkdir �Cp /opt/case
#yum  install  rsync
#vim /etc/rsyncd.conf
uid=root
gid=root
max connections=36000
use chroot=no
log file=/var/log/rsyncd.log
pid file=/var/run/rsyncd.pid
lock file=/var/run/rsyncd.lock

[case]
path=/opt/case
ignore errors=yes
read only=no
hosts allow=192.168.1.63/24
hosts deny=*
#rsync  --daemon


二、 服务器端的设置:(推送方sersync)

#mkdir �Cp /opt/app/sersync
#mkdir �Cp /opt/case
#cd   /opt/software
# wget  http://sersync.googlecode.com/files/sersync2.5.4_64bit_binary_stable_final.tar.gz
# tar zxvf sersync2.5.4_64bit_binary_stable_final.tar.gz -C /opt/app/sersync/
#cd  /opt/app/sersync/GNU-Linux-x86/
#vim  confxml.xml

找到如下代码,更改为:

</filter>
   <inotify>
       <delete start="true"/>
       <createFolder start="true"/>
       <createFile start="true"/>
       <closeWrite start="true"/>
       <moveFrom start="true"/>
       <moveTo start="true"/>
       <attrib start="false"/>
       <modify start="false"/>
   </inotify>



   <sersync>
       <localpath watch="/opt/case">
           <remote ip="192.168.1.64" name="case"/>
           <!--<remote ip="192.168.8.39" name="tongbu"/>-->
           <!--<remote ip="192.168.8.40" name="tongbu"/>-->

#./sersync2 �Cd

#/opt/app/sersync/GNU-Linux-x86/sersync2 -d -o /opt/app/sersync/GNU-Linux-x86/confxml.xml


本文出自 “linux” 博客,谢绝转载!

你可能感兴趣的:(配置,sersync)