Rsync configuration and installation, rsync Configuration

Source: Internet
Author: User
Tags rsync

Rsync configuration and installation, rsync Configuration

Rsync Installation

1. extract the rsync package, package link: https://pan.baidu.com/s/1jHPosXC password: maay2. enter the rsync installation package run command :. /configure -- prefix =/usrmakemake install3. Go To The/etc directory and create the rsync directory mkdir rsync4. go to the/etc/rsync directory and create three configuration files rsyncd. conf // configuration file rsyncd. pas // Password File rsyncd. motd // description file 5. rsyncd. conf configuration file option: log file =/usr/local/rsync/var/rsyncd. logpid file =/usr/local/rsync/var/rsyncd. pidlock file =/usr/local/etc/rsyncd. locksecrets file =/etc/rsync/rsyncd. pas // Password file motd file =/etc/rsync/rsyncd. motd // welcome language port = 873 // port number read only = nohosts allow = 000.000.000.000 000.000.000.000 // ip address that can be synchronized, multiple file directories to be ignored are separated by spaces: list = yesuid = nobodygid = nobodyuse chroot = nomax connections = 4 exclude =/bak/not // [bak] // Module name path = /home/bak // file directory to be synchronized comment = www bak // annotation auth users = test // user name 5. create rsyncd. pastest: 123456 // User name: Password 6. create rsyncd. motd ++ ++ welcome ++ to install rsync on the client, follow these steps: /usr/bin/rsync -- daemon -- config =/etc/rsyncd. conf synchronization command: rsync-av/home/bak test@000.000.000.000: bak run this command, will prompt to enter the password, the password is invisible, enter the completion of press ENTER synchronization command 2: test@000.000.000.000: bak -- password-file =/etc/rsync/auth. this command saves the step of entering the password and creates an auth under/etc/rsync. the pas file. enter 123456 for the password of the user (the password is XXXX). To save all the password files created above, the 600 permission chown root is required. root rsyncd. pas/auth. paschmod 600 rsyncd. pas/auth. pas enables port 873 iptables-I INPUT-p tcp -- dport 873-j ACCEPT. If the prompt is failed to create pid file/usr/local/rsync/var/rsyncd. pid: No such file or directory. Enter the/usr/local directory to create the rsync/var directory.

  

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.