sersync實時同步操作記錄(僅供自己參考所用)

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章