当前位置:网站首页>Rsync for file server backup
Rsync for file server backup
2022-04-23 05:52:00 【Mu Meiwen】
For company file server scp When I ordered the backup, it broke because the cleaner cleaned the keyboard for me in the morning , Checked for a while , There is no way to continue , It's too troublesome to transfer one folder by one ,scp The default is to overwrite , So I want to find a document that can be compared , And skip the backup command of the same file , After searching and querying the command parameters , It is recorded as follows :
command :rsync
With the parameters :
-a --archiive Archiving mode , Indicates that files are transferred recursively , And keep all file properties , be equal to -rlptgoD
-v --verbose Detailed mode output
-z --compress Compress the backup files during transmission
-u --update Just update it , That is to skip all that already exists in DST, And the file time is later than the file to be backed up , Do not overwrite updated files
--progress View the copy process
The specific example commands are as follows :
rsync -avzu --progress MEEN/ [email protected]:/home/wood/PROJECT/
Be careful :
If the path has spaces , Must use "" Circle
Both servers that have to talk are installed rsync
End
版权声明
本文为[Mu Meiwen]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230542211267.html
边栏推荐
猜你喜欢

Issue 36 summary of atcoder beginer contest 248

Dva中在effects中获取state的值

Pytorch learning record (XI): data enhancement, torchvision Explanation of various functions of transforms

2-軟件設計原則

多线程与高并发(1)——线程的基本知识(实现,常用方法,状态)

JDBC连接数据库

filebrowser实现私有网盘

SQL statement simple optimization

Software architecture design - software architecture style

sklearn之 Gaussian Processes
随机推荐
给yarn配置国内镜像加速器
MySql基础狂神说
io.lettuce.core.RedisCommandExecutionException: ERR wrong number of arguments for ‘auth‘ command
DBCP使用
MySQL lock mechanism
Multithreading and high concurrency (3) -- synchronized principle
SQL注入
对象转map
框架解析2.源码-登录认证
Summary of redis classic interview questions 2022
2.devops-sonar安装
RedHat6之smb服务访问速度慢解决办法记录
Pytorch learning record (IV): parameter initialization
【华为机试】考试得分总数(如何处理答错的情况?回溯一次,代表答错一题)
基于ssm 包包商城系统
Postfix变成垃圾邮件中转站后的补救
Error 2003 (HY000) when Windows connects MySQL: can't connect to MySQL server on 'localhost' (10061)
尚硅谷 p290 多态性练习
EditorConfig
Latex快速入门