当前位置:网站首页>rsync实现文件服务器备份
rsync实现文件服务器备份
2022-04-23 05:43:00 【慕美文】
公司文件服务器用scp命令备份的时候因为保洁早上给我擦键盘而断掉了,查了好一会,没有续传的办法,自己一个文件夹一个文件夹的传太麻烦了,scp默认是覆盖,所以想找一个能对比文件,并跳过相同文件的备份命令,经过搜索及查询命令参数,现记录如下:
命令:rsync
用得到的参数:
-a --archiive 归档模式,表示以递归方式传输文件,并保持所有文件属性,等于-rlptgoD
-v --verbose 详细模式输出
-z --compress 对备份的文件在传输时进行压缩处理
-u --update 仅仅进行更新,也就是跳过所有已经存在于DST,并且文件时间晚于要备份的文件,不覆盖更新的文件
--progress 查看拷贝的过程
具体实例命令如下:
rsync -avzu --progress MEEN/ [email protected]:/home/wood/PROJECT/
注意:
如果路径有空格,必须用""圈起来
必须对话的两台服务器都装了rsync
End
版权声明
本文为[慕美文]所创,转载请带上原文链接,感谢
https://blog.csdn.net/penetrate/article/details/62038406
边栏推荐
- Add days to date
- io. lettuce. core. RedisCommandExecutionException: ERR wrong number of arguments for ‘auth‘ command
- 基于ssm 包包商城系统
- ‘EddiesObservations‘ object has no attribute ‘filled‘
- DWSurvey是一个开源的调查问卷系统。解决无法运行问题,修改bug。
- Meta annotation (annotation of annotation)
- C language - Spoof shutdown applet
- Data mining -- understanding data
- Map object map get(key)
- Duplicate key update in MySQL
猜你喜欢

Batch import of orange single micro service

2 - software design principles

SQL statement simple optimization

框架解析1.系统架构简介

Find the number of "blocks" in the matrix (BFS)

第36期《AtCoder Beginner Contest 248 打比赛总结》

mysql中duplicate key update

Differences between sea level anatomy and sea surface height anatomy

Transposed convolution

Excel sets row and column colors according to cell contents
随机推荐
数据安全入门产品——数据库审计系统详解
2-软件设计原则
手动删除eureka上已经注册的服务
尚硅谷 p290 多态性练习
C3P0数据库连接池使用
Batch import of orange single micro service
【华为机试】考试得分总数(如何处理答错的情况?回溯一次,代表答错一题)
Summary of redis classic interview questions 2022
Error 2003 (HY000) when Windows connects MySQL: can't connect to MySQL server on 'localhost' (10061)
Breadth first search topics (BFS)
多个一维数组拆分合并为二维数组
OSI层常用协议
对象转map
Strategy for improving the conversion rate of independent stations | recovering abandoned users
软件架构设计——软件架构风格
实体中list属性为空或者null,设置为空数组
提升Facebook触及率和互动率攻略 | 智能客服帮您抓住用户的心
Sword finger offer II 022 The entry node of the link in the linked list
excel获取两列数据的差异数据
freemark中插入图片