Installing and running an rsync server
- Go and find a rsync-package for your distribution.
- Install it! (what else? 😉
- Use these config files as a base:
$ vi /etc/rsyncd.conf
uid = nobody
gid = nobody
use chroot = no
read only = yes
strict modes = yes
max connections = 1
syslog facility = local5
pid file = /var/run/rsyncd.pid
log file = /var/log/rsyncd.log
[xxx]
path = /mnt/xxx
comment = XXX (approx 500 GB)
auth users = susan
secrets file = /etc/rsyncd.secrets
$ vi /etc/xinetd.d/rsync
service rsync
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon --bwlimit=KBPS
log_on_failure += USERID
}
$ vi /etc/rsyncd.secrets
susan:herpass
$ chmod 600 /etc/rsyncd.secrets
$ systemctl stop rsyncd
$ systemctl disable rsyncd
$ systemctl enable xinetd
$ systemctl start xinetd