faith丶

导航

2021年1月25日 #

except免交互执行命令

摘要: ### #!/bin/bash if [ `rpm -qa expect|egrep "expect.*.x86_64"|wc -l` -ne 1 ];then yum install -y expect >/dev/null 2>&1 fi ############################ 阅读全文

posted @ 2021-01-25 16:59 faith丶 阅读(145) 评论(0) 推荐(0) 编辑

inotify+rsync实时同步文件

摘要: ### 1.前提 部署rsync服务 2.安装inotify (1) 部署inotify #说明:inotify-tools软件需要依赖epel源 yum install -y inotify-tools (2)查看安装好的服务都安装了什么信息 rpm -ql inotify-tools /usr/ 阅读全文

posted @ 2021-01-25 13:49 faith丶 阅读(192) 评论(0) 推荐(0) 编辑

rsync守护进程+xinetd管理rsync服务 - rsync传输文件

摘要: ### 1.语法格式 Pull: rsync [OPTION...] [USER@]HOST::SRC... [DEST] Push: rsync [OPTION...] SRC... [USER@]HOST::DEST 2.服务端部署--rsync(备份服务器) ################# 阅读全文

posted @ 2021-01-25 12:39 faith丶 阅读(622) 评论(0) 推荐(0) 编辑