zoukankan      html  css  js  c++  java
  • sersync2 填坑记录

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <head version="2.5">
        <host hostip="localhost" port="8008"></host>
        <debug start="false"/>
        <fileSystem xfs="true"/>
        <filter start="true">
            <exclude expression="(.*).svn"></exclude>
            <exclude expression="(.*).gz"></exclude>
            #这个地方如果要排除目录,目录后面要加/d* 这才是正则的写法
            <exclude expression="^static/[0-9]/d*"></exclude>                
            <exclude expression="^static/[0-9][0-9]/d*"></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="/tmp/test/file/www/">
                <remote ip="192.168.18.33" name="opt"/>
            </localpath>
            <rsync>
                <commonParams params="-artu"/>
                <auth start="true" users="j" passwordfile="/etc/rsyn.sec"/>
                <userDefinedPort start="false" port="874"/><!-- port=874 -->
                <timeout start="false" time="100"/><!-- timeout=100 -->
                <ssh start="false"/>
            </rsync>
            <failLog path="/tmp/rsync_log.sh" timeToExecute="60"/><!--default every 60mins execute once-->
            <crontab start="true" schedule="3"><!--600mins-->
                <crontabfilter start="true">
                <exclude expression="(.*).svn"></exclude>
                <exclude expression="(.*).gz"></exclude>
                #同步没成功的文件,这里需要符合rsync的用法,不能^static/[0-9]/d* 这样用,否则不成功
                <exclude expression="static/[0-9]"></exclude>
                <exclude expression="static/[0-9][0-9]"></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>
     
    </head>
  • 相关阅读:
    变量1
    PHP 函数
    发送post请求
    XXE
    CSRF
    Html基础
    暴力破解
    Brup sute
    XSS
    URL 传参转义 (特殊符号转义)
  • 原文地址:https://www.cnblogs.com/fanpiao/p/12785543.html
Copyright © 2011-2022 走看看