I. Environment description:
192.168.1.10 rsyncd server
192.168.1.2, 192.168.1.3 rsyncd client
II. Configuration:
192.168.1.10 server configuration:
1. rsyncd. conf configuration:
[[Email protected] ~] # Cat/etc/rsyncd. conf
# Write by Chris on 20140915
# Rsync server configuration file
Uid = www
Gid = www
Use chroot = no
Max connections = 1024
Pid file =/var/run/rsyncd. pid
Log file =/var/log/rsyncd. log
Hosts allow = 192.168.1.2
Hosts allow = 192.168.1.3
[Test]
Path =/www/test/
Comment = test
Ignore errors = true
Read only = no
List = no
Auth users = www
Secrets file =/etc/rsync. pass
2. rsync. pass file attributes and account password:
[[Email protected] ~] # Ll/etc/rsync. pass
-Rw ------- 1 root 15 Sep 15 00:07/etc/rsync. pass
[[Email protected] ~] # Cat/etc/rsync. pass
Www: xvdaf + Ax8
192.168.1.2, 192.168.1.3 client synchronization command:
Remoteip = "192.168.1.10"
AppName = "test"
/Usr/bin/rsync-avz -- password-file = $ HOME/. rsync. pas --exclude-from=exclude.txt [email protected] $ {remoteip}: test/www/$ {appName}
Execution result:
192.168.1.3 normal synchronization on the client
192.168.1.2 client error:
Rsync [email protected] $ {remoteip}: test @ ERROR: Unknown module 'test' doesn't know my module
Solution:
Rsyncd. conf file
Hosts allow = 192.168.1.2
Hosts allow = 192.168.1.3
Change
Hosts allow = 192.168.1.2, hosts allow = 192.168.1.3
Synchronization is normal.
This article from the "wind" blog, please be sure to keep this source http://1081025.blog.51cto.com/1071025/1573638
Rsync synchronization ERROR [ERROR: Unknown module]