设置开机启动 RSYNC_ENABLE=false修改为SYNC_ENABLE=true

nano /etc/default/rsync

服务管理

systemctl stop rsync
systemctl start rsync

编辑配置文件

nano /etc/rsyncd.conf

配置内容

uid = nobody
gid = nobody
use chroot = yes
syslog facility = local5
pid file = /var/lock/rsync.lock
[data]
        path = /data 
        read only = false 
        write only = false
        list = true
[test]//用户名认证
        path = /test    
        read only = false
        write only = false
        list = true
        auth users = rsync        
        secrets file = /etc/rsyncd.secrets

详细参数说明

https://download.samba.org/pub/rsync/rsyncd.conf
最后修改:2024 年 04 月 05 日
如果觉得我的文章对你有用,请随意赞赏