首页 > 服务器 > ubuntu配置rsyncd服务
作者:ghostry 发布时间:2016-10-07 浏览: 5236
转载注明出处: https://blog.1ge.fun/server/755.htmlvi /etc/rsyncd.conf
输入
# GLOBAL OPTIONS
motd file=/etc/rsyncd.motd
log file=/var/log/rsyncd
pid file=/var/run/rsyncd.pid
syslog facility=daemon
#socket options=
# MODULE OPTIONS
[back]
comment = backup files
path = /mnt/data/upload/back
use chroot = yes
# max connections=10
lock file = /var/lock/rsyncd
# the default for read only is yes...
read only = no
list = yes
uid = momo
gid = momo
# exclude =
# exclude from =
# include =
# include from =
# auth users = momo
secrets file = /etc/rsyncd.secrets
strict modes = yes
# hosts allow =
# hosts deny =
ignore errors = no
ignore nonreadable = yes
transfer logging = no
# log format = %t: host %h (%a) %o %f (%l bytes). Total %b bytes.
timeout = 600
refuse options = checksum dry-run
dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz
然后
vi /etc/rsyncd.motd
输入欢迎语
Welcome to rsyncd
然后配置用户,可以不配置
vi /etc/rsyncd.secrets
格式是用户名冒号密码
username:password
重启服务
systemctl restart rsync.service
上一篇: Ubuntu/Debian自动安装安全更新下一篇: 家用媒体中心