Introduction to rsync
The rsync package contains the
rsync utility. This
is useful for synchronizing large file archives over a network.
This package is known to build and work properly using an LFS-8.0
Download (HTTP): https://www.samba.org/ftp/rsync/src/rsync-3.1.2.tar.gz
Download MD5 sum: 0f758d7e000c0f7f7d3792610fad70cb
Download size: 872 KB
Estimated disk space required: 11 MB (with tests - additional
45 MB for HTML API documentation)
Estimated build time: 0.5 SBU (with tests)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/rsync
Installation of rsync
For security reasons, running the rsync server as an unprivileged user and group
is encouraged. If you intend to run rsync as a daemon, create the
rsyncd user and group with the
following commands issued by the
groupadd -g 48 rsyncd &&
useradd -c "rsyncd Daemon" -d /home/rsync -g rsyncd \
-s /bin/false -u 48 rsyncd
Install rsync by running the
./configure --prefix=/usr --without-included-zlib &&
If you have Doxygen-1.8.13 installed and wish to build
HTML API documentation, issue doxygen.
To test the results, issue: make
Now, as the
If you built the documentation, install it using the following
commands as the
install -v -m755 -d /usr/share/doc/rsync-3.1.2/api &&
install -v -m644 dox/html/* /usr/share/doc/rsync-3.1.2/api
For client access to remote files, you may need to install the
OpenSSH-7.4p1 package to connect to the
This is a simple download-only configuration to set up running
rsync as a server.
See the rsyncd.conf(5) man-page for additional options (i.e.,
cat > /etc/rsyncd.conf << "EOF"
# This is a basic rsync configuration file
# It exports a single module without user authentication.
motd file = /home/rsync/welcome.msg
use chroot = yes
path = /home/rsync
comment = Default rsync module
read only = yes
list = yes
uid = rsyncd
gid = rsyncd
You can find additional configuration information and general
documentation about rsync at http://rsync.samba.org/documentation.html.
Note that you only want to start the rsync server if you want to provide an
rsync archive on your local
machine. You don't need this script to run the
/etc/rc.d/init.d/rsyncd init script
included in the blfs-bootscripts-20170127 package.