Rsync命令参数详解
记录一下rsync命令的参数。
常用参数
| ID | NAME | ENGLISH | CHINESE |
|---|---|---|---|
| 1 | –verbose, -v | increase verbosity | 详细模式输出 |
| 2 | –quiet, -q | suppress non-error messages | 精简输出模式 |
| 3 | –progress | show progress during transfer | 在传输时现实传输过程 |
| 4 | –archive, -a | archive mode is -rlptgoD (no -A,-X,-U,-N,-H) | 归档模式,表示以递归方式传输文件,并保持所有文件属性,等于-rlptgoD |
| 5 | -compress, -z | compress file data during the transfer | 对备份的文件在传输时进行压缩处理 |
| 6 | –delete | delete extraneous files from dest dirs | 删除那些DST中SRC没有的文件 |
| 7 | –config=FILE | specify alternate rsyncd.conf file | 指定其他的配置文件,不使用默认的rsyncd.conf文件 |
| 8 | –password-file=FILE | read daemon-access password from FILE | 从FILE中得到密码 |
| 9 | –port=PORT | listen on alternate port number | 指定其他的rsync服务端口 |
| 10 | –existing | skip creating new files on receiver | 仅仅更新那些已经存在于DST的文件,而不备份那些新创建的文件 |
| 11 | –partial | keep partially transferred files | 保留那些因故没有完全传输的文件,以是加快随后的再次传输 |
| 12 | –daemon | run as an rsync daemon | 以daemon模型运行 |
| 13 | –exclude=PATTERN | exclude files matching PATTERN | 指定排除不需要传输的文件模式 |
| 14 | –exclude-from=FILE | read exclude patterns from FILE | 排除FILE中指定模式的文件 |
全部参数
官网参数说明:https://download.samba.org/pub/rsync/rsync.1
1 | |
Rsync命令参数详解
http://pygo2.top/articles/22710/