-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
rsync: add Chinese translation #5200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+36
−0
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
824b439
rsync: add Chinese (zh) translation
xiaolong-666 1f20c97
fix: single-trailing-newline
xiaolong-666 2410d0f
fix: modify as suggested
xiaolong-666 8a196d8
Update pages.zh/common/rsync.md
xiaolong-666 a607ada
fix: change format
xiaolong-666 aead7fc
Update pages.zh/common/rsync.md
xiaolong-666 52d371e
Remove duplicate newline
bl-ue File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # rsync | ||
|
|
||
| > 一种快速,通用,远程(和本地)文件复制工具。 | ||
| > 更多信息:<https://man7.org/linux/man-pages/man1/rsync.1.html>。 | ||
|
|
||
| - 从本地传输文件到远程主机: | ||
|
|
||
| `rsync {{path/to/local_file}} {{remote_host}}:{{path/to/remote_directory}}` | ||
|
|
||
| - 从远程主机传输文件到本地: | ||
|
|
||
| `rsync {{remote_host}}:{{path/to/remote_file}} {{path/to/local_directory}}` | ||
|
|
||
| - 将本地文件以归档模式并保留几乎所有属性,同时使用压缩功能传输到远程主机,并以人类可读方式输出详细信息和进度条: | ||
|
|
||
| `rsync --archive --compress --verbose --human-readable --progress {{path/to/local_file}} {{remote_host}}:{{path/to/remote_directory}}` | ||
|
|
||
| - 将远程主机目录上的所有文件,以递归模式传输到本地: | ||
|
|
||
| `rsync --recursive {{remote_host}}:{{path/to/remote_directory}} {{path/to/local_directory}}` | ||
|
|
||
| - 将远程主机该目录下的所有内容(不包含该目录),以递归方式传输到本地: | ||
|
|
||
| `rsync --recursive {{remote_host}}:{{path/to/remote_directory}}/ {{path/to/local_directory}}` | ||
|
|
||
| - 递归方式传输目录,保留几乎所有属性,解析软连接,并忽略已传输的文件: | ||
|
|
||
| `rsync --recursive --archive --update --copy-links {{remote_host}}:{{path/to/remote_file}} {{path/to/local_directory}}` | ||
|
|
||
| - 指定本地和远程之间通信方式: | ||
|
|
||
| `rsync --rsh ssh {{remote_host}}:{{path/to/remote_file}} {{path/to/local_file}}` | ||
|
|
||
| - 指定本地和远程之间通信方式,使用指定端口,并显示进度条: | ||
|
|
||
|
xiaolong-666 marked this conversation as resolved.
|
||
| `rsync --rsh 'ssh -p {{port}}' --progress {{remote_host}}:{{path/to/remote_file}} {{path/to/local_file}}` | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.