Linux下的rsync命令详解(受不了网上以讹传讹的翻译)
来源:互联网 发布:大学宿舍知乎 编辑:程序博客网 时间:2024/04/29 16:21
rsync是一款UNIX系统中的开源工具,提供增量的文件传输功能。
rsync采用GNU GPL许可证。
rsync的最新版本是2015.12.21发布的3.1.2。
1.rsync工具的组成
- rsync文件,实现远程文件复制的命令
- rsync.conf文件,在Daemon模式中的rsync命令所使用的配置文件
1) rsync server
一台机器,执行rsync --daemon启动,启动时会读取rsync.conf配置文件
2) rsync client
rsync server之外的任何安装了rsync的机器。
可以根据需求执行rsync ...命令,实现与rsync server进行备份、镜像等操作。
rsync的命令格式:
rsync [-options] <source> <destination>
说明,<source>或<destination>可以如下任一格式:
- /one/data/path
- username@rsync_server:path/on/rsync/server
- username@rsync_server::path/on/rsync/server
《补充》这部分的原文,详解参考文献2的如下部分,不知为何被各种资料理解得面目全非:
The single colon specifies that you want the whole mess sent through your ssh tunnel, as opposed to the regular rsh tunnel. This is an important point to pay attention to! If you use two colons, then despite the specification of ssh on the command line previously, you'll still go through rsh.
rsync命令示例:
- rsync -v rsync://rsync_server/path_on_rsync_server
- rsync -auH rsync://rsync_server/path_on_rsync_server/ .
不要丢了最后的".",表示当前路径。
- rsync -av /databack root@ip::www
- rsync -avz root@ip:src/bar /data
- rsync -a /data /backup
参考文献:
https://rsync.samba.org/
http://everythinglinux.org/rsync/
1 0
- Linux下的rsync命令详解(受不了网上以讹传讹的翻译)
- Linux下的rsync命令
- Linux下的rsync命令
- Linux下使用rsync进行数据备份的命令详解
- linux下rsync命令详解
- Linux rsync命令详解
- Linux rsync命令详解
- Linux rsync命令详解
- Linux:rsync命令详解
- linux下rsync的使用
- Linux下rsync的用法
- Linux下rsync的用法
- Linux下rsync的用法
- linux下rsync的使用
- Linux下rsync的用法
- linux下rsync的使用
- Linux rsync命令详解1
- Linux rsync命令详解2
- Android 能让你少走弯路的干货整理
- MyBatis有关于XML的增删改查
- 周志华《Machine Learning》学习笔记(10)--集成学习
- 关于Class.forName(className).newInstance()介绍
- jQuery on()方法
- Linux下的rsync命令详解(受不了网上以讹传讹的翻译)
- iOS中 高仿Tumblr热度-滚动条数-JQScrollNumberLabel 韩俊强的博客
- Android图片加载框架之Glide使用详解
- numpy库
- 1086. Tree Traversals Again (25)
- NYOJ 2184 Cow Exhibition(01背包+变形)
- sdut_java_集合相等问题
- struts2上传文件
- AndroidStudio中使用AIDL实现进程间通信