当前位置:网站首页>增量实时灾备笔记
增量实时灾备笔记
2022-07-29 02:54:00 【ELIAUK``】
ssh-keygen -t rsa这时.ssh目录下会生成私钥和公钥的键值对id_rsa,id_rsa.pub
ssh-copy-id -i /root/.ssh/id_rsa.pub [email protected]企业文件目录增量实时同步 删除不同步
wget -O/etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
yum -y install inotify-tools rsyncshell脚本如下:
#!/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边栏推荐
猜你喜欢

Zone --- line segment tree lazy marking board sub problem

Navicat new database

Verilog: blocking assignment and non blocking assignment

R language error: compilation failed for package '****‘

Advanced architects, 16 common principles of microservice design and Governance

SOA(面向服务架构)是什么?

What is SOA (Service Oriented Architecture)?

Shell编程规范与变量

VASP calculation task error: M_ divide:can not subdivide 8 nodes by 6

会议OA项目之我的审批功能
随机推荐
会议OA之反馈功能
C陷阱与缺陷 第3章 语义“陷阱” 3.6 边界计算与不对称边界
万字详解 Google Play 上架应用标准包格式 AAB
RestfulAPI——C#——增加header用户名密码验证
百度副总裁李硕:数字技术加持下中国劳动力成本上升是好事
VASP calculation task error: M_ divide:can not subdivide 8 nodes by 6
Engineering boy: under 20 years old, ordinary but not mediocre
My approval function of conference OA project
【FreeSwitch开发实践】UniMRCP编译与安装
C陷阱与缺陷 第2章 语法“陷阱” 2.6 “悬挂”else引发的问题
R language error: compilation failed for package '****‘
navicat新建数据库
C language: Little Lele and Euclid
C language: judging letters
C陷阱与缺陷 第3章 语义“陷阱” 3.1 指针与数组
R语言ERROR: compilation failed for package ‘****‘
Tp5.0 applet users do not need to log in and directly obtain the user's mobile number.
MySQL compound query (important)
Shell编程规范与变量
Analysis of OWT server source code (III) -- video module analysis of mixer in