Rsync related sorting

Source: Internet
Author: User

Part 1 rsync server configuration

1. Download and install

A. Install yum. Yum install rsync
B. Download the rsync Installation File
# Tar zxvf rsync-2.6.9.tar.gz
# Cd rsync-2.6.9
#./Configure -- prefix =/usr/local/rsync
# Make
# Make install

2. Enable rsync

A. Start rsync

# Vi/etc/xinetd. d/rsync

# default: off# description: The rsync server is a good addition to an ftp server, as it # allows crc checksumming etc.service rsync{    disable = no    flags           = IPv6    socket_type     = stream    wait            = no    user            = root    server          = /usr/bin/rsync    server_args     = --daemon    log_on_failure  += USERID}     

 

B. manually generate the configuration file/etc/rsyncd. conf.

#############---- Global configuration ----- ############# PID file =/var/run/rsyncd. pid # PID file, no Port = 873 # listening port uid = root # user name gid = root for running rsync daemon # user group for running rsync daemon use chroot = yesread only = No hosts allow = 127.0.0.1/ 24 172.18.0.0/16 # IP addresses allowed for access, do not fill in. For security reasons, enter hosts Deney = 183.232.24.190 # Access Denied IP address, do not fill in ###########---- module configuration ############ [sinawap] Path =/usr/local/ testread only = nolist = No # do not allow the column file auth users = username # Do not enter secrets file =/etc/rsync. PAS # If you have a user, you can enter the password file address as follows: hosts allow = 127.0.0.1/24 172.18.0.0/16 # IP addresses allowed for access, do not enter, for security, enter hosts deny = 0.0.0.0/0 # Access Denied IP address. Do not enter # transfer logging = Yes

 

C. Start the service
A) Service xinetd restart
B) Start/usr/bin/rsync independently -- deamon

 

----- To be continued -----

 

Rsync related sorting

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.