Datasheet
“main” (Installation and Administration) — 2004/6/25 — 13:29 — page 570 — #596
i
i
i
i
i
i
i
i
Up to this point, the handling does not differ much from that of a regular
copying tool, like scp.
rsync should be operated in “rsync” mode to make all its features fully
available. This is done by starting the rsyncd daemon on one of the sys-
tems. Configure it in the file /etc/rsyncd.conf. For example, to make
the directory /srv/ftp available with rsync, use the following configura-
tion:
gid = nobody
uid = nobody
read only = true
use chroot = no
transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log
[FTP]
path = /srv/ftp
comment = An Example
Then start rsyncd with rcrsyncd start. rsyncd can also be started au-
tomatically during the boot process. Set this up by activating this service
in the runlevel editor provided by YaST or by manually entering the com-
mand insserv rsyncd.
rsyncd can alternatively be started by xinetd. This is, however, only recom-
mended for servers that rarely use rsyncd.
The example also creates a log file listing all connections. This file is stored
in /var/log/rsyncd.log.
It is then possible to test the transfer from a client system. Do this with the
following command:
rsync -avz sun::FTP
This command lists all files present in the directory /srv/ftp of the
server. This request is also logged in the log file /var/log/rsyncd.log.
To start an actual transfer, provide a target directory. Use . for the current
directory. For example:
rsync -avz sun::FTP .
570
23.6. Introduction to rsync










