Rsync server

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

About missing_link

Nietzsche is dead.
This entry was posted in Linux, Software and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.