Skip to content

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

@longren610

Description

@longren610

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions