Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rsync和command无法同时进行 #30

Open
GoogleCodeExporter opened this issue Sep 7, 2015 · 1 comment
Open

rsync和command无法同时进行 #30

GoogleCodeExporter opened this issue Sep 7, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

使用两个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
Copy link
Author

应该是可以的,请把debug打开,看一下打印信息,command插件��
�行时候,会在控制台打印信息的。

Original comment by zhouyang...@gmail.com on 27 Jun 2010 at 1:21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant