Linux-rsync Server Building Combat

Source: Internet
Author: User
Tags rsync

First, the basic knowledge

Rsync is divided into server-side, client-side, server-building than the client hard (and very simple).

The rsync server is the server that runs the rsync service in Deamon mode and needs to open the Rsync deamon and start the xinetd service. Default Port 873.

The rsync client is the server that initiates the rsync connection and installs rsync.

After the Rsync client initiates the connection, the Rsync server checks that the Rsync client submits the user name and password built into the rsync server correctly, and if the authentication is detected, the file transfer is started, and the transfer process is based on the requirements of the file size, attributes, permissions, MD5 values, etc. If the file information on both ends is inconsistent, synchronize the difference blocks of the file as required.

Second, installation

Most Linux operating systems have their own rsync service, and if you want to upgrade you can use Yum, you can also use the source package to install it yourself.

wget https://download.samba.org/pub/rsync/rsync-3.1.2.tar.gztar -xzf rsync- 3.1. 2. Tar . GZCD rsync-3.1. 2 . /configure--prefix=/usr/local/rsyncdmake make andinstall

Third, service-side configuration

The Rsync profile is installed and sometimes does not exist, do not panic, you can create it manually. Create the configuration file directory and file as follows:

| -/ETC/RSYNCD (folder)

| -rsyncd.conf (rsync server configuration file)

| -Rsyncd.secrets (user password file, the client uses the account password to access, requires 600 permissions)

| -RSYNCD.MOTD (the server information that is displayed after the user logs in is not much used)

mkdir /etc/rsyncdtouch /etc/rsyncd/rsyncd.conftouch /etc/rsyncd/  Rsyncd.secretsTouch /etc/rsyncd/rsyncd.motdchmod /etc/rsyncd/ Rsyncd.secrets

Four, start the service side

/usr/local/rsync/bin/rsync--daemon

Five

Linux-rsync Server Building Combat

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.