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

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

Open
longren610 opened this issue May 10, 2022 · 0 comments
Open

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

longren610 opened this issue May 10, 2022 · 0 comments

Comments

@longren610
Copy link

longren610 commented May 10, 2022

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

......
    <filter start="true">
	    <exclude expression="^(?!.*?uploads).*$"></exclude>
    </filter>
......
	<localpath watch="/wwwroot/">
		<remote ip="10.0.0.100" name="file"/>
	</localpath>
......
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant