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