How does Linux operations learn to do rsync troubleshooting?

Source: Internet
Author: User
Tags rsync

Rsync is an open source, fast and versatile tool that enables simultaneous, full-scale, incremental, local or remote data backup, and is one of the essential skills of operations personnel. So how does the OPS debug the rsync when the OPS deployment architecture is deployed?

1 The necessary thought of the wrong line

1) Deployment Process step proficiency

2) Rsync principle Understanding

3) Learn to read the log, rsync command line output, log file/var/log/rsyncd.log

2 Troubleshooting Ideas

2.1 Rsync service-Side troubleshooting ideas

1) Check that the Rsync service profile path is correct and the correct default path is:/etc/rsyncd.conf

2) View the configuration file in host Allow,host deny, allow IP network segment to allow client access to IP segment

3) Check the path parameter in the configuration file for the existence of the correct permissions (normally the owner and group corresponding to the UID parameter in the configuration file)

4) Check to see if the Rsync service is started and see the command: Ps-ef|grep rsync. Whether the port will exist Netstat-ntlpu|grep 873

5) Check whether the Iptables firewall and SELinux are enabled to allow the Rsync service to pass, or consider shutting down

6) Check whether the password file for rsync configuration on the server is 600 and the correct format, the correct format user name: password, file path and Secrect file in the configuration files to be the same

7) If it is to push the data, it is necessary to look at the configuration in the rsyncd.conf file whether the user has read and write permissions to the directory under the module

2.2 Rsync Client Troubleshooting Ideas

1) Check whether the password file of the client rsync configuration is 600 permissions, the password file format is correct, note: only need to have the password, and the service side password consistent

2) connect the rsync server IP address 873 port with Telnet to see if the service is started (can test the server firewall is blocked). Telnet 172.16.1.41 873

3) When the client executes the command RSYNC-AVZP [email protected]::backup//test/--password-file=/etc/rsync.password

The details of this command should be clearly remembered, especially the double colon at 172.16.1.41::oldboy/test/and the subsequent Oldboy as the module name

After sharing, hope to help the needs of the pot friends. Linux is now popular with internet companies and wants to stand out from the many IT workers, and it is essential to have the skills to learn and add value. The way of learning, you insist. Old boy Education Linux cloud Computing Operations course, 10 years of technical precipitation, put an end to paper, the whole enterprise real case combined with theoretical teaching, want to learn more about the Linux cloud computing operations knowledge, can pay attention to the old boy education.


How does Linux operations learn to do rsync troubleshooting?

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.