当前位置:网站首页>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
边栏推荐
- The 8th Blue Bridge Cup 2017 - frog jumping cup
- mysql实现主从复制/主从同步
- ‘EddiesObservations‘ object has no attribute ‘filled‘
- 手动删除eureka上已经注册的服务
- protected( 被 protected 修饰的成员对于本包和其子类可见)
- MySQL事务
- The difference between cookie and session
- The role of brackets' [] 'in the parameter writing method in MDN documents
- 一文读懂当前常用的加密技术体系(对称、非对称、信息摘要、数字签名、数字证书、公钥体系)
- Common status codes
猜你喜欢
框架解析1.系统架构简介
Find the number of "blocks" in the matrix (BFS)
Interview Basics
引航成长·匠心赋能——YonMaster开发者培训领航计划全面开启
PreparedStatement防止SQL注入
Establish excel bookkeeping book through setting context menu
转置卷积(Transposed Convolution)
Navicate连接oracle(11g)时ORA:28547 Connection to server failed probable Oeacle Net admin error
2-軟件設計原則
Excel sets row and column colors according to cell contents
随机推荐
Map对象 map.get(key)
C语言——恶搞关机小程序
Object to map
创建线程的三种方式
异常的处理:抓抛模型
Strategies to improve Facebook's touch rate and interaction rate | intelligent customer service helps you grasp users' hearts
mysql-触发器、存储过程、存储函数
PreparedStatement防止SQL注入
第36期《AtCoder Beginner Contest 248 打比赛总结》
类的加载与ClassLoader的理解
提升独立站转化率攻略 | 挽回弃购用户
C language - Spoof shutdown applet
What is JSON? First acquaintance with JSON
JSP语法及JSTL标签
refused connection
Flutter nouvelle génération de rendu graphique Impeller
Issue 36 summary of atcoder beginer contest 248
POI exports to excel, and the same row of data is automatically merged into cells
No.1.#_ 6 Navicat shortcuts
Sea Level Anomaly 和 Sea Surface Height Anomaly 的区别