一、rsync+inotify与rsync+sersync架构的区别 1、rsync+inotify a、inotify只能记录下被监听的目录发生了变化(增,删,改)并没有把具体是哪个文件或者哪个目录发生了变化记录下来; b、rsync在同步的时候,并不知道具体是哪个文件或目录发生了变化,每次都是对 ...
分类:
其他好文 时间:
2020-07-16 21:21:14
阅读次数:
65
rsync结合inotify实时同步 # 客户端下载inotify yum install -y inotify-tools # 安装完成就有了一个inotifywait命令,这个命令是用来做监控的,下面是关于这个命令的参数 -m 持续监控 -r 递归 -q 静默,仅打印时间信息 --timefmt ...
分类:
系统相关 时间:
2020-07-13 18:30:31
阅读次数:
86
sersync同步实战 sersync是基于inotify和srync的二次开发,代码托管在github上面在rsync的客户端上安装,下载地址: https://raw.githubusercontent.com/wsgzao/sersync/master/sersync2.5.4_64bit_b ...
分类:
其他好文 时间:
2020-07-12 12:34:29
阅读次数:
116
#一.要求 web01,web02中的目录挂载到nfs的目录下下,并且把nfs的目录实时同步到backup中。 | 主机名 | 外网IP | 内网IP | 作用 | 要部署服务 | | | | | | | | web01 | 172.16.1.7 | 10.0.0.7 | rsync和nfs的客户端 ...
分类:
其他好文 时间:
2020-07-10 20:56:37
阅读次数:
75
inotify-tools3.14版本永久链接 链接: inotify-tools-3.14提取码:15t5 概要:为什么需要监控系统文件? 跟踪某些关键的系统文件的变化 通知配置文件的改变 监控某个分区磁盘的整体情况 Inotify到底是做什么的? Inotify是一种文件变化通知机制,linux ...
分类:
系统相关 时间:
2020-07-03 15:18:14
阅读次数:
76
#!/bin/bashsrc=/test/dest=testrsync_secret_file=/etc/rsync_pwdfiledest_ip=192.168.37.133user=test/usr/local/bin/inotifywait -mrq --format '%Xe %w %f' ...
分类:
其他好文 时间:
2020-06-30 18:56:32
阅读次数:
44
#前言:基于inotify的三种实时同步方法 inotify 脚本部署 (inotifly脚本无法由systemctl启动,只能手动/脚本启停,pkill sersync2,sersync2 -dro /usr/bin/xxxxx) lsync 软件部署 sersync 软件二进制部署。 #几大实时 ...
分类:
其他好文 时间:
2020-06-20 21:11:12
阅读次数:
98
使用roles部署sersync 环境 外网IP 内网IP 主机名 10.0.0.5 172.16.1.5 lb01 (负载均衡) 10.0.0.6 172.16.1.6 lb02 10.0.0.7 172.16.1.7 web01(服务器) 10.0.0.8 172.16.1.8 web02 10 ...
分类:
其他好文 时间:
2020-06-19 21:08:27
阅读次数:
44
使用playbook实现一键部署keepalived+nginx+PHP+wordpress+mariadb 环境 主机名 安装服务 wan lan lb01 nginx+keepalived(master) 10.0.0.5 172.16.1.5 lb02 nginx+keepalived(bac ...
分类:
数据库 时间:
2020-06-14 16:42:03
阅读次数:
56
模板机,交换机,lan区段,read 2. ssh scp rsync的三种传输方式 rsync+cron 3. rsync+inotify NFS 4. rsync和NFS排错 sersync 5. ssh telnet 环境变量与命令 ifconfig、ifup、ifdown ssh免密登录 跳 ...
分类:
其他好文 时间:
2020-06-14 01:22:53
阅读次数:
84