rsync+sersync配置同步遇到个问题
本帖最后由 clifftree 于 2015-06-04 14:30 编辑sersync触发同步时,忽略某个目录下的个别文件如何配置?
如我要忽略同步目录下data目录下的config.php,我是下面这样写的,但是实现不了
<filter start="true">
<exclude expression="(.*)\.svn"></exclude>
<exclude expression="data/(.*)\.php"></exclude> 此写法未能实现忽略
<exclude expression="^data/(.*)\.php"></exclude> 此写法未能实现忽略
<exclude expression="data/config.php"></exclude> 此写法未能实现忽略
<exclude expression="^data/config\.php"></exclude> 此写法未能实现忽略
<exclude expression="data/(.*)\.php"></exclude> 此写法未能实现忽略
</filter>
其实就是要忽略data下的config.php文件,因为是一个配置文件,不能同步过去。有大神晓得吗如何写吗 已经解决! 真难发现!
页:
[1]