# cat /etc/rsyncd.conf

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
pid file = /var/run/rsyncd.pid
syslog facility = local5
munge symlinks = no
use chroot = no
uid=root
socket options="--sockopts=SO_SNDBUF=65536,SO_RCVBUF=131072"

[user]
  path = /home/user
  write only = false
  read only = true
  hosts allow = hostYYY.domain.net 192.168.3.8

[nginx]
  path = /etc/nginx
  write only = false
  read only = true
  hosts allow = hostXXX.domain.net 192.168.3.1

При этом на другом хосте можем использовать конструкцию
rsync -av rsync://host1.com/user/web/domain.net/public_html/ /home/web/domain.net/public_html/