This commit is contained in:
85
File/Xml/confxml.xml
Normal file
85
File/Xml/confxml.xml
Normal file
@@ -0,0 +1,85 @@
|
||||
<!--
|
||||
作者: 丁辉
|
||||
-->
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<head version="2.5">
|
||||
<host hostip="localhost" port="8008"></host>
|
||||
<debug start="false"/>
|
||||
<fileSystem xfs="false"/> <!--是否为xfs文件系统-->
|
||||
<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="true"/>
|
||||
<!--在启动时, 是否同步所有文件-->
|
||||
<modify start="false"/>
|
||||
</inotify>
|
||||
|
||||
<sersync>
|
||||
<localpath watch="/data"> <!--同步的本地目录-->
|
||||
<remote ip="127.0.0.1" name="data"/>
|
||||
<!--<remote ip="192.168.1.30" name="data"/>-->
|
||||
<!--<remote ip="192.168.1.40" name="data"/>-->
|
||||
</localpath>
|
||||
<rsync>
|
||||
<commonParams params="-artuz"/>
|
||||
<!--
|
||||
params 参数解释
|
||||
-a: 表示归档模式, 用于保留文件的属性 (包括权限、所有者等) 以及递归复制子目录
|
||||
-r: 表示递归复制目录和子目录
|
||||
-t: 表示保留文件的时间戳信息
|
||||
-u: 表示仅复制更新过的文件
|
||||
-z: 表示启用压缩传输, 以减少数据传输的大小
|
||||
-->
|
||||
<auth start="true" users="rsync" passwordfile="/etc/rsync.pass"/>
|
||||
<userDefinedPort start="false" port="874"/><!-- port=874 -->
|
||||
<timeout start="true" time="100"/><!-- timeout=100 -->
|
||||
<ssh start="false"/>
|
||||
</rsync>
|
||||
<failLog path="/tmp/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>
|
Reference in New Issue
Block a user