Rsync server synchronization error for help

Source: Internet
Author: User
Rsync server synchronization error help-Linux general technology-Linux technology and application information, the following is a detailed description. [I = s] This post was last edited by szfhx

My ubuntu server (192.168.2.99) can use rsync to back up the directory locally, for example:
Su
Rsync-avz -- delete -- exclude-from = "/home/hr/back/paicu"/home/back/
Both the server and client create hr and fhx users.

Enter the following command on the client 192.168.2.8:
Su # The following command error prompts are the same for root, hr, or fhx users. It seems that the password file created on the client is useless.
Rsync-avz -- password-file =/etc/rsyncd. scrt hr@192.168.2.99: homehr/home/hr or
Rsync-avz -- password-file =/etc/rsyncd. scrt fhx@192.168.2.99: homehr/home/fhx
The error message is as follows:
Password file must not be other-accessible
Continuing without password file
Password:
@ ERROR: auth failed on module homehr
Rsync error: error starting client-server protocol (code 5) at main. c (1521) [runner ER = 3.0.6]
However, you can run the following command:
Hr@192.168.2.99:/home/hr
Does ubuntu rsync fail to use: homehr (Module name? -- Password-file =/etc/rsyncd. scrt password file Settings (password-Free input settings) do not work?
How can this problem be solved?

Appendix: My rsync settings for 192.168.2.99 Server:
Su
Vim/etc/rsyncd. conf
# [Globale]
Strict modes = yes
# Check passwd file
Port = 873
# Default port
Logfile =/var/log/rsyncd. log
Pidfile =/var/run/rsyncd. pid
Max connections = 4
# [Modules]
[Homehr]
# Backup module
Uid = root
Gid = root
Path =/home
# Directory to be backed up
Read only = no
Host allow = 192.168.2.8
Auth users = hr, fhx
Secrets file =/etc/rsyncd. scrt

Password File:
Vim/etc/rsyncd. scrt
Hr: 123.
Fhx: 123
Chmod 600/etc/rsyncd. scrt

Start the Service (if a firewall is enabled, allow port 873 to pass through)
Rsync -- daemon -- config =/etc/rsyncd. conf

Configure the client (192.168.2.8) rsync ubuntu is installed by default
Create or modify a password file
Su
Vim/etc/rsyncd. scrt
The file content is the same as the client file content
Chmod 600/etc/rsyncd. scrt
Related Article

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.