sersync icon indicating copy to clipboard operation
sersync copied to clipboard

多个网站需要同步,正则过滤问题

Open longren610 opened this issue 2 years ago • 0 comments

求教: 站点目录/wwwroot/下有很多个网站,网站代码是从一台svn服务器同步过来的,现在需要把多台生产服务器之间的生产文件目录做双向同步,想直接一个配置文件监听/wwwroot/目录,然后把所有站点的非生产目录过滤掉,不做监听,这个正则要如何写呢?试了一下“?!”,但是没什么用。折腾了好久才把同步搞定,就卡在这点,实在不想再换同步方式了。

......
    <filter start="true">
	    <exclude expression="^(?!.*?uploads).*$"></exclude>
    </filter>
......
	<localpath watch="/wwwroot/">
		<remote ip="10.0.0.100" name="file"/>
	</localpath>
......

longren610 avatar May 10 '22 02:05 longren610