rsync - 客户端常用参数

# -a, --archive
# This is equivalent to -rlptgoD. It is a quick way of saying you want recursion and want to preserve almost everything (with -H being a notable omission). The only exception to the above equivalence is when --files-from is specified, in which case -r is not implied.
# 等价于-rlptgoD。简言之即是想最大限度的保留所有事物(值得注意的是忽略了-H)。仅在指定了--files-from时不等价,此时不执行-r。
# -r, --recursive
# This tells rsync to copy directories recursively. See also --dirs (-d).
# 通知rsync递归复制文件夹。参见 --dirs (-d)。
# -u, --update
# This forces rsync to skip any files which exist on the destination and have a modified time that is newer than the source file. (If an existing destination file has a modification time equal  to the source file's, it will be updated if the sizes are different.)
# 强制rsync跳过目标上已存在而且比源文件新的任何文件。(如果一个已存在的目标文件的修改时间和源文件相等,则在尺寸不同时更新)
# -l, --links
# When symlinks are encountered, recreate the symlink on the  destination.
# 在遇到符号链接时,在目标上重建符号链接
# -p, --perms
# This option causes the receiving rsync to set the destination permissions to be the same as the source permissions. (See also the --chmod option for a way to modify what rsync considers to be the source permissions.)
# 该选项导致rsync接收方按照和源相同的权限设置目标权限。(参见--chmod选项提供一个途径修改rsync如何判断源权限。)
# -o, --owner
# This option causes rsync to set the owner of the destination file to be the same as the source file, but only if the receiving rsync is being run as the super-user (see also the --super and --fake-super options). Without this option, the owner of new and/or transferred files are set to the invoking user on the receiving side.
# 该选项导致rsync按照源文件设置目标文件相同的owner,但是仅限于rsync接收方运行于超级用户时(参考--super和--fake-super选项)。没有该选项时,新建和/或已传输文件的owner将设置为接收端运行的帐户。
# -g, --group
# This option causes rsync to set the group of the destination file to be the same as the source file. If the receiving program is not running as the super-user (or if --no-super was specified), only groups that the invoking user on the receiving side is a member of will be preserved. Without this option, the group is set to the default group of the invoking user on the receiving side.
# 该选项导致rsync按照源文件设置目标文件相同的group,如果接收程序没有使用超级用户运行(或者指定--no-super)时,仅在接收方的执行用户是group的成员时才能保留。没有该选项时,group设置为接收端执行用户的默认组。
# -t, --times
# This tells rsync to transfer modification times along with the files and update them on the remote system. Note that if this option is not used, the optimization that excludes files that have not been modified cannot be effective; in other words, a missing -t or -a will cause the next transfer to behave as if it used -I, causing all files to be updated (though rsync's deltatransfer algorithm will make the update fairly efficient if the files haven't actually changed, you're much better off using -t).
# 通知rsync在传输文件时也传输最后修改日期并更新到远程系统。注意如果不使用该选项,则排除没有修改的文件的优化方式将不起作用,换句话说,缺少-t 或-a将导致下一次传输时像设置了-I一样,导致更新所有的文件(尽管在文件没有实际改变时rsync的增量传输算法也将提升更新效率,最好使用-t)。
# -z, --compress
# With this option, rsync compresses the file data as it is sent to the destination machine, which reduces the amount of data being transmitted -- something that is useful over a slow connection.
# 使用该选项,rsync在发送到目标设备前压缩文件数据,这将减少传输文件的数量——对于慢速连接有用处
# 例如远程可用如下参数
/usr/bin/rsync -auz 192.168.1.2::module /path/to/module/
# 本地可以用如下参数
/usr/bin/rsync -au /path/to/source/ /path/to/destination/

[相关问题]

全局常用配置说明

模块常用配置说明

客户端常用参数

rsync - 客户端常用参数相关推荐

  1. 【Linux】Rsync基于SSH认证的使用(rsync 命令属于1 v 4 的命令、rsync常用参数基本用法)

    一.Rsync基于SSH认证的使用 rsync 默认使用 ssh 协议进行远程登录和数据传输.远程主机需要开启 sshd 服务,rsync 在传输数据之前会先与远程主机进行一次 ssh 登录认证,然后 ...

  2. MySQL客户端工具mysqladmin常用参数和命令总结

    文章目录 1.1 mysqladmin工具如何安装 1.2 mysqladmin工具有何作用 1.3 mysqladmin工具语法说明 1.4 mysqladmin读取文件获取连接信息 1.5 mys ...

  3. linux rsync同步 --delete参数 删除目标目录比源目录多余文件

    在日常运维工作中,我们经常用到rsync这个同步神器.有时在同步两个目录时,会要求删除目标目录中比源目录多出的文件,这种情况下,就可用到rsync的--delete参数来实现这个需求了. 实例说明: ...

  4. CentOS6.9下ssh密钥登录配置步骤(免密码登录)和ssh-keygen 命令常用参数

    密钥登录步骤(免密码登录) ssh登录提供两种认证方式:口令(密码)认证方式和密钥认证方式.其中口令(密码)认证方式是我们最常用的一种,出于安全方面的考虑,介绍密钥认证方式登录到linux/unix的 ...

  5. SSH客户端常用工具SecureCRT操作

    SSH客户端常用工具SecureCRT操作 1.1 SecureCRT工具介绍 SecureCRT是一款支持SSH(SSH1和SSH2)协议的终端仿真软件,常被用来运行于Windows下远程登录UNI ...

  6. oracle nls_lang gbk,Oracle客户端NLS_LANG参数的设置详解

    我们知道,Oracle客户端语言支持可以通过NLS_LANG参数的设置来完成,不同的系统平台上NLS_LANG参数的设置会有所不同.本文我们首先介绍了NLS_LANG参数的构成,然后介绍了Oracle ...

  7. ping命令常用参数

    ping命令常用参数 简述ping命令原理和作用 Linux下ping常用参数 Ubuntu安装ping命令 ping指定次数 -c 间隔秒数-i 指定发包字节数-s 存活数值-t ping域名很久才 ...

  8. ajax重要且常用参数

    ajax的重要参数 $.ajax({url: "请求路径",type: "post",contentType: "application/json; ...

  9. linux nfs配置参数,NFS常用参数

    1,服务端权限 rw:读写权限 ro: 只读 sync: 请求或写入数据,数据同步写入到NFS-server的磁盘中 async:异步写入数据,先返回强求,在将数据人写入到内存.可提高性能! no_r ...

最新文章

  1. 计算机培训学校办学宗旨,西安软件科技培训学院简介
  2. Python基础(4):类
  3. [转载]男生女生过家家呀
  4. Hibernate二级/查询缓存的陷阱
  5. Java HashMap源码剖析
  6. 使用Inno Setup 打包.NET程序,并自动安装.Net Framework
  7. UE4 编辑器模块引用,不影响打包处理
  8. 生日祝福电子贺卡html5,电子生日祝福卡
  9. 每天学命令deleteRow
  10. [小知识] WPS恢复本地历史数据
  11. C语言中的逗号的作用,c语言中什么是逗号运算符并举例
  12. 如何快速拆分PDF文件(照片快速转换成pdf)
  13. 正态分布的前世今生(靳志辉“Ÿ)
  14. linux主机 asp主机 java主机 区别,计算机中支持asp的主机是什么操作系统
  15. 水准路线平差c语言程序,水准网平差程序的设计与实现
  16. 想报考pmp(pmp报考费),一定要先经过培训机构吗?
  17. Python趣味算法入门 - 百钱百鸡
  18. HTML5初学----基础代码案例汇总
  19. 大学生计算机适合用苹果笔记本吗,2019学生党笔记本推荐 苹果笔记本适合大学生吗...
  20. java动态字段的万能表单系统的构建

热门文章

  1. 5种最热门编程语言的优缺点
  2. 三本 计算机专业,四川哪些三本大学的计算机专业最好?
  3. Big Sur + karabiner + kernelmanagerd = 可能发烫
  4. 利用ARP的攻击与欺骗实现网络监控和管理(长角牛监控机)
  5. 软件测试自动化分类,自动化测试的主要分类
  6. 蛟龙未遇,潜身于鱼虾之间;君子失时,拱手于小人之下。
  7. git设置用户名密码
  8. [openwrt] 使用ubus实现
  9. aliyun-freeSSL证书生成、下载、配置到apache httpd
  10. 盘点那些计算机相关名词(二)