sersync实时同步操作记录(仅供自己参考所用)

来源:互联网 发布:艾媒大数据 编辑:程序博客网 时间:2024/06/11 13:54
sersync实时同步操作记录(仅供自己参考所用)


cp sersync2.5.4_64bit_binary_stable_final.tar.gz  /usr/local/
cp sersync_installdir.tar.gz  /usr/local/
cp sersync_tools.tar.gz  /usr/local/
cd /usr/local


tar -xf sersync_installdir.tar.gz 




cat /etc/exports
#shared data for nfs-mywebserver by dexter-wang at 20170301
/data 10.1.0.0/16(rw,anonuid=65534,anongid=65534,sync)
/www 10.1.0.0/16(rw,sync)


# vim /usr/local/sersync/conf/confxml.xml 


<sersync>
<localpath watch="/www">
        <remote ip="10.1.41.71" name="www"/>
</localpath>
<!-- ################################### -->


 <rsync>
     <commonParams params="-aruz"/>
     <auth start="true" users="admin" passwordfile="/etc/rsyncd.password"/>
     <userDefinedPort start="false" port="874"/><!-- port=874 -->
     <timeout start="true" time="100"/><!-- timeout=100 -->
     <ssh start="false"/>
 </rsync>




echo 'export PATH=$PATH:/usr/local/sersync/bin' >> /etc/profile


tail -1 /etc/profile
source /etc/profile
which serync


sersync -r -d -o /usr/local/sersync/conf/confxml.xml

0 0
原创粉丝点击