rsync README

项目的 README,来自 github.com/RsyncProject/rsync。合并为一个 markdown 文件:README.md。

WHAT IS RSYNC?

Rsync is a fast and extraordinarily versatile file copying tool for both remote and local files.

Rsync uses a delta-transfer algorithm which provides a very fast method for bringing remote files into sync. It does this by sending just the differences in the files across the link, without requiring that both sets of files are present at one of the ends of the link beforehand. At first glance this may seem impossible because the calculation of diffs between two files normally requires local access to both files.

A technical report describing the rsync algorithm is included with this package.

USAGE

Basically you use rsync just like scp, but rsync has many additional options. To get a complete list of supported options type:

rsync --help

See the manpage for more detailed information.

BUILDING AND INSTALLING

If you need to build rsync yourself, check out the INSTALL page for information on what libraries and packages you can use to get the maximum features in your build.

SETUP

Rsync normally uses ssh or rsh for communication with remote systems. It does not need to be setuid and requires no special privileges for installation. You must, however, have a working ssh or rsh system. Using ssh is recommended for its security features.

Alternatively, rsync can run in `daemon' mode, listening on a socket. This is generally used for public file distribution, although authentication and access control are available.

To install rsync, first run the "configure" script. This will create a Makefile and config.h appropriate for your system. Then type "make".

Note that on some systems you will have to force configure not to use gcc because gcc may not support some features (such as 64 bit file offsets) that your system may support. Set the environment variable CC to the name of your native compiler before running configure in this case.

Once built put a copy of rsync in your search path on the local and remote systems (or use "make install"). That's it!

RSYNC DAEMONS

Rsync can also talk to "rsync daemons" which can provide anonymous or authenticated rsync. See the rsyncd.conf(5) manpage for details on how to setup an rsync daemon. See the rsync(1) manpage for info on how to connect to an rsync daemon.

WEB SITE

For more information, visit the main rsync web site.

You'll find a FAQ list, downloads, resources, HTML versions of the manpages, etc.

MAILING LISTS

There is a mailing list for the discussion of rsync and its applications that is open to anyone to join. New releases are announced on this list, and there is also an announcement-only mailing list for those that want official announcements. See the mailing-list page for full details.

DISCORD

There is also an rsync Discord server for real-time chat about rsync and its development.

BUG REPORTS

The bug-tracking web page has full details on bug reporting.

That page contains links to the current bug list, and information on how to do a good job when reporting a bug. You might also like to try searching the Internet for the error message you've received, or looking in the mailing list archives.

To send a bug report, follow the instructions on the bug-tracking page of the web site.

Alternately, email your bug report to [email protected].

For security issues please email details of the issue to [email protected].

GIT REPOSITORY

If you want to get the very latest version of rsync direct from the source code repository, then you will need to use git. The git repo is hosted on GitHub and on Samba's site.

See the download page for full details on all the ways to grab the source.

Rsync was originally written by Andrew Tridgell and Paul Mackerras. Many people from around the world have helped to maintain and improve it.

Special thanks go to Wayne Davison, who maintained rsync from 2004 to 2024.

Rsync may be used, modified and redistributed only under the terms of the GNU General Public License, found in the file COPYING in this distribution, or at the Free Software Foundation.

rsync (RsyncProject/rsync)

正在搜索数据库…

5.4K ·GitHub
这是什么?Rsync 是一款快速的文件复制工具,既可用于远程文件,也可用于本地文件,能够同步目录并高效备份数据。
这是命令行工具还是库?它是一款命令行工具,用法与 scp 类似,但提供了许多额外的文件同步选项。
我该如何编译和安装它?运行 configure 脚本生成 Makefile 和 config.h,然后运行 make(以及 make install)来编译并安装 rsync。
在不同机器之间传输文件需要什么?你需要一个可用的 ssh 或 rsh 环境来连接远程系统;推荐使用 ssh,因为它具有更好的安全特性。Rsync 也可以作为独立的守护进程运行,监听一个套接字来代替。
安装时需要特殊权限吗?不需要。它无需设置 setuid,安装也不需要任何特殊权限,不过你的编译器必须支持 64 位文件偏移等特性。
谁会使用 rsync 守护进程模式?Rsync 守护进程模式通常用于公开的文件分发,并可选择启用身份验证和访问控制。
与普通复制相比,rsync 为什么更快?它使用增量传输算法,只通过网络发送文件之间的差异部分,而不是复制整个文件,并且无需同时在本地保存两个文件版本。
如何查看所有可用选项?运行 'rsync --help' 可以查看完整的受支持选项列表,或者查阅 manpage 以获取更多详细信息。
大小
16.4 MB
星标
5.4K
时长
6年
提交 · 90 天