rsync+inotify-tool 实现双向数据同步
假设有两台文件服务器192.168.0.100192.168.0.101rsync 可以实现文件的同步,但是当有新数据到达时,它没有能力做到实时触发,即便放到后台执行也不生效(nohup),所以采用rsync + inotify-tool 实现这种实时同步的效果。安装rsync, inotify安装过程略过,需要注意最好指定安装路径;inotif-tool 是c语言开发,所以需要安装gcc配置rs...
原创
2018-05-31 22:27:47 ·
1375 阅读 ·
0 评论