Rsync synchronization ERROR [ERROR: Unknown module]

Source: Internet
Author: User
Tags rsync

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]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.