|
@@ -0,0 +1,67 @@
|
|
|
|
+<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
+<head version="2.5">
|
|
|
|
+ <host hostip="localhost" port="8008"></host>
|
|
|
|
+ <debug start="false"/>
|
|
|
|
+ <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="false"/>
|
|
|
|
+ <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="/data/upload/lastest">
|
|
|
|
+ <remote ip="10.108.20.48" name="book"/>
|
|
|
|
+ <remote ip="10.108.20.49" name="book"/>
|
|
|
|
+ <remote ip="10.26.25.15" name="book"/>
|
|
|
|
+ <remote ip="10.26.30.203" name="book"/>
|
|
|
|
+ </localpath>
|
|
|
|
+ <rsync>
|
|
|
|
+ <commonParams params="-aruz"/>
|
|
|
|
+ <auth start="true" users="root" passwordfile="/etc/rsync.password"/>
|
|
|
|
+ <userDefinedPort start="false" port="874"/><!-- port=874 -->
|
|
|
|
+ <timeout start="true" time="100"/><!-- timeout=100 -->
|
|
|
|
+ <ssh start="false"/>
|
|
|
|
+ </rsync>
|
|
|
|
+ <failLog path="/usr/local/sersync/log/rsync_fail_log.sh" timeToExecute="60"/><!--default every 60mins execute once-->
|
|
|
|
+ <crontab start="false" schedule="600"><!--600mins-->
|
|
|
|
+ <crontabfilter start="false">
|
|
|
|
+ <exclude expression="*.php"></exclude>
|
|
|
|
+ <exclude expression="info/*"></exclude>
|
|
|
|
+ </crontabfilter>
|
|
|
|
+ </crontab>
|
|
|
|
+ <plugin start="false" name="command"/>
|
|
|
|
+ </sersync>
|
|
|
|
+
|
|
|
|
+ <plugin name="command">
|
|
|
|
+ <param prefix="/bin/sh" suffix="" ignoreError="true"/> <!--prefix /opt/tongbu/mmm.sh suffix-->
|
|
|
|
+ <filter start="false">
|
|
|
|
+ <include expression="(.*)\.php"/>
|
|
|
|
+ <include expression="(.*)\.sh"/>
|
|
|
|
+ </filter>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
|
|
+ <plugin name="socket">
|
|
|
|
+ <localpath watch="/opt/tongbu">
|
|
|
|
+ <deshost ip="192.168.138.20" port="8009"/>
|
|
|
|
+ </localpath>
|
|
|
|
+ </plugin>
|
|
|
|
+ <plugin name="refreshCDN">
|
|
|
|
+ <localpath watch="/data0/htdocs/cms.xoyo.com/site/">
|
|
|
|
+ <cdninfo domainname="ccms.chinacache.com" port="80" username="xxxx" passwd="xxxx"/>
|
|
|
|
+ <sendurl base="http://pic.xoyo.com/cms"/>
|
|
|
|
+ <regexurl regex="false" match="cms.xoyo.com/site([/a-zA-Z0-9]*).xoyo.com/images"/>
|
|
|
|
+ </localpath>
|
|
|
|
+ </plugin>
|
|
|
|
+</head>
|