5 1 1 1 1 1 Rating 5.00 (2 Votes)

# cat /etc/rsyncd.conf

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/