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.