#debug模式是否开启
<debug start="false"/>
#xfs文件系统是否开启
<fileSystem xfs="false"/>
#同步时,是否支持正则表达式,默认关闭
<filter start="false">
<exclude expression="(.*).svn"></exclude>
<exclude expression="(.*).gz"></exclude>
<exclude expression="^info/*"></exclude>
<exclude expression="^static/*"></exclude>
</filter>
# 设置要监控的事件
<inotify>
<delete start="true"/>
<createFolder start="true"/>
<createFile start="false"/>
<closeWrite start="true"/>
<moveFrom start="true"/>
<moveTo start="true"/>
<attrib start="false"/>
<modify start="false"/>
</inotify>
#同步的设置
<sersync>
#同步的路径,本地的目录
<localpath watch="/website">
#rsync服务器的ip地址和rsync配置文件里面定义的模块
<remote ip="172.16.22.1" name="htdocs"/>
#<!-- -->括起来表示注释
<!--<remote ip="192.168.8.39" name="tongbu"/>-->
<!--<remote ip="192.168.8.40" name="tongbu"/>-->
</localpath>
<rsync>
#rsync指令参数
<commonParams params="-artuz"/>
#rsync同步认证设置的内容,user指定用户名,password指定存放密码的文件路径
<auth start="true" users="backuper" passwordfile="/usr/local/sersync/sersync.pwd"/>
#设置rsync远程服务端口
<userDefinedPort start="false" port="874"/><!-- port=874 -->
#设置超时时间
<timeout start="true" time="100"/><!-- timeout=100 -->
#设置ssh加密传输模式,默认关闭
<ssh start="false"/>
</rsync>
#设置sersync传输失败日志脚本路径
<failLog path="/tmp/rsync_fail_log.sh" timeToExecute="60"/><!--default every 60mins execute once-->
#设置rsync+crontab定时传输,默认关闭
<crontab start="false" schedule="600"><!--600mins-->
<crontabfilter start="false">








