# /etc/rsyncd: configuration file for rsync daemon mode
# See rsyncd.conf man page for more options.
# configuration example:
# uid = nobody
# gid = nobody
# use chroot = yes
# max connections = 4
# pid file = /var/run/rsyncd.pid
# exclude = lost+found/
# transfer logging = yes
# timeout = 900
# ignore nonreadable = yes
# dont compress = *.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2
# [ftp]
# path = /home/ftp
# comment = ftp export area
port = 873
use chroot = no
max connections = 200
timeout = 600
read only = false
list = false
log file = /var/log/rsyncd.log
lock file = /var/run/rsyncd.lock
pid file = /var/run/rsyncd.pid
# 下面是一个模块配置(同时是放在被链接的那个服务,如果是push就是被推送的服务器,如果是pull就是拉取的服务器)
[test]
comment = welcome to linux!
path = /root/rsync_temp
# 是文件同步时用的用户和用户组
uid = root(自定义)
gid = root(自定义)