首页 > 服务器 > ubuntu配置rsyncd服务

作者:ghostry 发布时间:2016-10-07 浏览: 4975

转载注明出处: https://blog.ghostry.cn/server/755.html
vi /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

上一篇: Ubuntu/Debian自动安装安全更新
下一篇: 家用媒体中心

添加新评论 »

*
*

欢迎评论!歡迎評論!Comments welcome!komentoj bonvenaj!댓글 오신 것을 환영합니다!
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: :cold: :cryy: :cute: :shy: :sleep: :struggle: :tea: :yahou: