rsync的客户端向服务端发送文件,发送文件到::backup_8_124这个模块下,但是发送不出去
[root@localhost opt]# rsync --delete -avz /opt/dojsa rsync_backup@192.168.8.109::backup_8_124 --password-file=/etc/rsync.password
sending incremental file list
ERROR: module is read only
rsync error: syntax or usage error (code 1) at main.c(1142) [Receiver=3.2.3]
配置文件rsync服务端如下:
[root@localhost ~]# cat /etc/rsyncd.conf
#rsync_config_______________start
#created by jin 01:23 2019-06-09
#Email:3128743705@qq.com
##rsyncd.conf start##
uid = rsync
gid = rsync
use chroot = no
max connections = 200
timeout = 300
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log #这个是 rsync 的 log 文件,比较有用
[backup]
path = /backup/
ignore errors
read only = false
list = false
hosts allow = 192.168.8.0/24
hosts deny = 0.0.0.0/32
auth users = rsync_backup
secrets file = /etc/rsyncd/rsync.password
[backup_8_124]
path = /backup/192.168.8.124
#rsync_config_______________end