sersync_confxml.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <head version="2.5">
  3. <host hostip="localhost" port="8008"></host>
  4. <debug start="false"/>
  5. <fileSystem xfs="false"/>
  6. <filter start="false">
  7. <exclude expression="(.*)\.svn"></exclude>
  8. <exclude expression="(.*)\.gz"></exclude>
  9. <exclude expression="^info/*"></exclude>
  10. <exclude expression="^static/*"></exclude>
  11. </filter>
  12. <inotify>
  13. <delete start="false"/>
  14. <createFolder start="true"/>
  15. <createFile start="false"/>
  16. <closeWrite start="true"/>
  17. <moveFrom start="true"/>
  18. <moveTo start="true"/>
  19. <attrib start="false"/>
  20. <modify start="false"/>
  21. </inotify>
  22. <sersync>
  23. <localpath watch="/data/image/eachat">
  24. <remote ip="10.108.30.242" name="eachat"/>
  25. <remote ip="10.108.30.243" name="eachat"/>
  26. </localpath>
  27. <rsync>
  28. <commonParams params="-aruz"/>
  29. <auth start="true" users="root" passwordfile="/etc/rsync.pass"/>
  30. <userDefinedPort start="false" port="874"/><!-- port=874 -->
  31. <timeout start="true" time="100"/><!-- timeout=100 -->
  32. <ssh start="false"/>
  33. </rsync>
  34. <failLog path="/usr/local/sersync/log/rsync_fail_log.sh" timeToExecute="60"/><!--default every 60mins execute once-->
  35. <crontab start="false" schedule="600"><!--600mins-->
  36. <crontabfilter start="false">
  37. <exclude expression="*.php"></exclude>
  38. <exclude expression="info/*"></exclude>
  39. </crontabfilter>
  40. </crontab>
  41. <plugin start="false" name="command"/>
  42. </sersync>
  43. <plugin name="command">
  44. <param prefix="/bin/sh" suffix="" ignoreError="true"/> <!--prefix /opt/tongbu/mmm.sh suffix-->
  45. <filter start="false">
  46. <include expression="(.*)\.php"/>
  47. <include expression="(.*)\.sh"/>
  48. </filter>
  49. </plugin>
  50. <plugin name="socket">
  51. <localpath watch="/opt/tongbu">
  52. <deshost ip="192.168.138.20" port="8009"/>
  53. </localpath>
  54. </plugin>
  55. <plugin name="refreshCDN">
  56. <localpath watch="/data0/htdocs/cms.xoyo.com/site/">
  57. <cdninfo domainname="ccms.chinacache.com" port="80" username="xxxx" passwd="xxxx"/>
  58. <sendurl base="http://pic.xoyo.com/cms"/>
  59. <regexurl regex="false" match="cms.xoyo.com/site([/a-zA-Z0-9]*).xoyo.com/images"/>
  60. </localpath>
  61. </plugin>
  62. </head>