当前位置:网站首页>增量实时灾备笔记
增量实时灾备笔记
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边栏推荐
- [opencv] use OpenCV to call mobile camera
- [NPM error] - NPM err code eresolve and NPM err eresolve could not resolve problems
- What is SOA (Service Oriented Architecture)?
- Look at robot education and lead the mainstream of quality education
- Day 8 notes
- Li Shuo, vice president of Baidu: it's a good thing that China's labor costs rise with the support of digital technology
- kubernetes-1.24.x 特性
- OSPF experiment
- C陷阱与缺陷 第3章 语义“陷阱” 3.7 求值顺序
- 混淆矩阵学习笔记
猜你喜欢
随机推荐
HTB-Blue
爆肝整理JVM十大模块知识点总结,不信你还不懂
Hangao database best practice configuration tool Hg_ BP log collection content
Shell编程规范与变量
Pytest environment deployment + use case execution management + use case parameterization
MySQL compound query (important)
Navicat new database
【C】数组
Mysql复合查询(重要)
【FreeSwitch开发实践】UniMRCP编译与安装
C language: judging letters
MySQL large table joint query optimization, large transaction optimization, avoiding transaction timeout, lock wait timeout and lock table
Day 10 notes
Pytest环境部署+用例执行管理+用例参数化
Chapter 09_ Use of performance analysis tools
会议OA之反馈功能
数仓中概念术语解析
01-SDRAM:初始化模块的代码
Analysis of OWT server source code (III) -- video module analysis of mixer in
MySQL - count(字段)、count(主键)、count(1)、count(*)的区别









