add new chinese translations
This commit is contained in:
@@ -1,37 +1,37 @@
|
||||
# rsync
|
||||
|
||||
> 一种快速,通用,远程(和本地)文件复制工具,默认使用 SSH。
|
||||
> 如果要指定远程路径,请使用 `user@host:path/to/file_or_directory`.
|
||||
> 更多信息:<https://download.samba.org/pub/rsync/rsync.1>.
|
||||
> 通过默认使用SSH将文件传输到远程主机或从远程主机传输文件(但不能在两个远程主机之间传输)。
|
||||
> 要指定远程路径,请使用 `user@host:path/to/file_or_directory`。
|
||||
> 更多信息:<https://download.samba.org/pub/rsync/rsync.1>。
|
||||
|
||||
- 复制文件:
|
||||
- 传输文件:
|
||||
|
||||
`rsync {{路径/到/来源}} {{路径/到/目标}}`
|
||||
`rsync {{path/to/source}} {{path/to/destination}}`
|
||||
|
||||
- 使用归档模式递归拷贝文件,并保留所有属性,不解析软链接:
|
||||
- 使用归档模式(递归复制目录,复制符号链接而不解析,并保留权限、所有权和修改时间):
|
||||
|
||||
`rsync {{-a|--archive}} {{路径/到/来源}} {{路径/到/目标}}`
|
||||
`rsync {{-a|--archive}} {{path/to/source}} {{path/to/destination}}`
|
||||
|
||||
- 将文件以归档模式并保留几乎所有属性进行传输,并以人类可读方式输出详细信息和进度条,中断时保留部分信息:
|
||||
- 在发送到目标时压缩数据,显示详细且易读的进度,并在中断时保持部分传输的文件:
|
||||
|
||||
`rsync {{-zvhP|--compress --verbose --human-readable --partial --progress}} {{路径/到/来源}} {{路径/到/目标}}`
|
||||
`rsync {{-zvhP|--compress --verbose --human-readable --partial --progress}} {{path/to/source}} {{path/to/destination}}`
|
||||
|
||||
- 以递归模式传输文件:
|
||||
- 递归复制目录:
|
||||
|
||||
`rsync {{-r|--recursive}} {{路径/到/来源}} {{路径/到/目标}}`
|
||||
`rsync {{-r|--recursive}} {{path/to/source}} {{path/to/destination}}`
|
||||
|
||||
- 将目录下的所有内容(不包含该目录),以递归方式传输:
|
||||
- 传输目录内容,但不传输目录本身:
|
||||
|
||||
`rsync {{-r|--recursive}} {{路径/到/来源}}/ {{路径/到/目标}}`
|
||||
`rsync {{-r|--recursive}} {{path/to/source}}/ {{path/to/destination}}`
|
||||
|
||||
- 归档方式传输目录,保留几乎所有属性,解析软连接,并忽略已传输的文件:
|
||||
- 使用归档模式,解析符号链接,并跳过在目标上较新的文件:
|
||||
|
||||
`rsync {{-auL|--archive --update --copy-links}} {{路径/到/来源}} {{路径/到/目标}}`
|
||||
`rsync {{-auL|--archive --update --copy-links}} {{path/to/source}} {{path/to/destination}}`
|
||||
|
||||
- 传输目录到运行 `rsyncd` 的远端,并删除目标目录中源目录中不存在的文件:
|
||||
- 从运行 `rsyncd` 的远程主机传输目录,并删除目标上不存在于源中的文件:
|
||||
|
||||
`rsync {{-r|--recursive}} --delete rsync://{{host}}:{{路径/到/来源}} {{路径/到/目标}}`
|
||||
`rsync {{-r|--recursive}} --delete rsync://{{host}}:{{path/to/source}} {{path/to/destination}}`
|
||||
|
||||
- 指定本地和远程之间通信方式,使用指定端口,并显示进度条:
|
||||
- 使用不同于默认端口(22)的端口通过SSH传输文件,并显示全局进度:
|
||||
|
||||
`rsync {{-e|--rsh}} 'ssh -p {{端口}}' --info=progress2 {{host}}:{{路径/到/来源}} {{路径/到/目标}}`
|
||||
`rsync {{-e|--rsh}} 'ssh -p {{port}}' --info=progress2 {{host}}:{{path/to/source}} {{path/to/destination}}`
|
Reference in New Issue
Block a user