sersync_confxml.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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/upload/lastest">
  24. <remote ip="10.108.20.48" name="book"/>
  25. <remote ip="10.108.20.49" name="book"/>
  26. <remote ip="10.26.25.15" name="book"/>
  27. <remote ip="10.26.30.203" name="book"/>
  28. </localpath>
  29. <rsync>
  30. <commonParams params="-aruz"/>
  31. <auth start="true" users="root" passwordfile="/etc/rsync.password"/>
  32. <userDefinedPort start="false" port="874"/><!-- port=874 -->
  33. <timeout start="true" time="100"/><!-- timeout=100 -->
  34. <ssh start="false"/>
  35. </rsync>
  36. <failLog path="/usr/local/sersync/log/rsync_fail_log.sh" timeToExecute="60"/><!--default every 60mins execute once-->
  37. <crontab start="false" schedule="600"><!--600mins-->
  38. <crontabfilter start="false">
  39. <exclude expression="*.php"></exclude>
  40. <exclude expression="info/*"></exclude>
  41. </crontabfilter>
  42. </crontab>
  43. <plugin start="false" name="command"/>
  44. </sersync>
  45. <plugin name="command">
  46. <param prefix="/bin/sh" suffix="" ignoreError="true"/> <!--prefix /opt/tongbu/mmm.sh suffix-->
  47. <filter start="false">
  48. <include expression="(.*)\.php"/>
  49. <include expression="(.*)\.sh"/>
  50. </filter>
  51. </plugin>
  52. <plugin name="socket">
  53. <localpath watch="/opt/tongbu">
  54. <deshost ip="192.168.138.20" port="8009"/>
  55. </localpath>
  56. </plugin>
  57. <plugin name="refreshCDN">
  58. <localpath watch="/data0/htdocs/cms.xoyo.com/site/">
  59. <cdninfo domainname="ccms.chinacache.com" port="80" username="xxxx" passwd="xxxx"/>
  60. <sendurl base="http://pic.xoyo.com/cms"/>
  61. <regexurl regex="false" match="cms.xoyo.com/site([/a-zA-Z0-9]*).xoyo.com/images"/>
  62. </localpath>
  63. </plugin>
  64. </head>