当前位置:网站首页>Incremental real-time disaster recovery notes
Incremental real-time disaster recovery notes
2022-07-29 03:06:00 【ELIAUK``】
ssh-keygen -t rsaAt this time .ssh The key value pairs of private key and public key will be generated under the directory id_rsa,id_rsa.pub
ssh-copy-id -i /root/.ssh/id_rsa.pub [email protected]Enterprise file directory incremental real-time synchronization Delete out of sync
wget -O/etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
yum -y install inotify-tools rsyncshell The script is as follows :
#!/bin/bash
path1=/srv/salt/base/ldy
ip=192.168.30.13
/usr/bin/inotifywait -mrq --timefmt %y/%m'%d %H:/%M' --format '%T %w%f' -emodify,create,attrib $path1 | while read file;
do
rsync -avz /srv/salt/base/ldy [email protected]:/root
echo "${file} was rsynced" >> /var/log/rsync.log 2>&1边栏推荐
- HTB-Blocky
- Jinshan cloud returns to Hong Kong for listing: Hong Kong stock rush of Chinese to B cloud manufacturers
- 「PHP基础知识」输出圆周率的近似值
- Multithreading realizes concurrent reading and execution of multi use case files +selenium grid4 realizes distributed deployment of test framework
- 工科男生:20岁未满,平凡但不平庸
- C陷阱与缺陷 第3章 语义“陷阱” 3.3 作为参数的数组声明
- C traps and defects Chapter 3 semantic "traps" 3.1 pointers and arrays
- 百度副总裁李硕:数字技术加持下中国劳动力成本上升是好事
- vasp计算任务报错:M_divide:can not subdivide 8 nodes by 6
- 【npm错误】- npm ERR code ERESOLVE 和 npm ERR ERESOLVE could not resolve 问题
猜你喜欢
随机推荐
Multi table (Association) query of SQL query data
C traps and defects Chapter 3 semantic "traps" 3.8 operators &, |, and!
2.nodejs--路径(_dirname,_filname)、url网址、querystring模块、mime模块、各种路径(相对路径)、网页的加载(面试题*)
【C】数组
Redis配置缓存过期监听事件触发
Add a row to a specific location in the dataframe
IDEA安装后无法启动
VIM common commands
Apache文件管理自学笔记——映射文件夹和基于单ip多域名配置apache虚拟机
Shell编程规范与变量
2022-07-28 第四小组 修身课 学习笔记(every day)
Verilog的时间系统任务----$time、$stime、$realtime
Available data sets for scene classification tasks (part)
codeforces每日5题(均1500)-第二十五天
kubernetes-1.24.x 特性
R language error: compilation failed for package '****‘
Typescript学习(一)
Wechat's crazy use of glide - life cycle learning
MYSQL入门与进阶(十四)
C traps and defects Chapter 3 semantic "traps" 3.7 evaluation order



![[open the door to the new world] see how the old bird of testing plays API testing between applause](/img/79/1bc836cefef24d23e09d9865ff1fba.png)





