rsync和command无法同时进行
Opened this issue · 1 comments
GoogleCodeExporter commented
使用两个sersync2进程结果正常,但是放在一个进程中只能同步,�
��会执行command
配置文件如下
<?xml version="1.0" encoding="ISO-8859-1"?>
<head version="2.5">
<host hostip="localhost" port="8008"></host>
<filter start="true">
<exclude expression="(.*)\.svn"></exclude>
<exclude expression="(.*)\.db"></exclude>
</filter>
<inotify>
<delete start="true"/>
<createFolder start="true"/>
<createFile start="true"/>
<closeWrite start="true"/>
<moveFrom start="true"/>
<moveTo start="true"/>
<attrib start="false"/>
<modify start="false"/>
</inotify>
<debug start="false"/>
<fileSystem xfs="false"/>
<sersync>
<localpath watch="/data/htdocs/images">
<remote ip="192.168.8.12" name="images"/>
</localpath>
<rsync>
<commonParams params="-artuz"/>
<auth start="true" users="game2" passwordfile="/etc/rsync.pass"/>
<userDefinedPort start="false" port="874"/><!-- port=874 -->
<timeout start="false" 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="*.svn"></exclude>
<exclude expression="*.db"></exclude>
</crontabfilter>
</crontab>
<plugin start="true" name="command"/>
</sersync>
<plugin name="command">
<param prefix="/usr/local/script/clearimg.sh" suffix="" ignoreError="true"/>
<filter start="true">
<include expression="(.*)\.svn"/>
<include expression="(.*)\.db"/>
</filter>
</plugin>
</head>
Original issue reported on code.google.com by XMUm...@gmail.com
on 25 Jun 2010 at 6:30
GoogleCodeExporter commented
应该是可以的,请把debug打开,看一下打印信息,command插件��
�行时候,会在控制台打印信息的。
Original comment by zhouyang...@gmail.com
on 27 Jun 2010 at 1:21