Rsync 3.1.1 Source Compilation installation Configuration

Source: Internet
Author: User

http://rsync.samba.org/rsync-3.1.1.tar.gz---0. Uninstall rpm# Yum Remove rsync-----1. Installation: TAR-ZXVF RSYNC-3.1.1.TAR.GZCD Rsync-3.1.1./configure--prefix=/usr/local/rsync--disable-ipv6makemake installln-s/usr/local/rsync/bin/rsync/usr /local/bin/rsync----2.server Terminal configuration # vi/usr/local/rsync/rsyncd.confpid file =/var/run/rsyncd.pidport = 873pid = Rootgid = R Ootuse chroot = Nomax connections = 200timeout 600lock File =/var/run/rsyncd.locklog file =/var/run/rsyncd.logsecrets fi Le =/usr/local/rsync/rsyncd.secrets MOTD file =/etc/rsyncd.motd[test]path =/test/ignore Errorsread only = Truelist = FA lsehosts Allow = * #hosts deny = 0.0.0.0/32auth users root #该用户系统中存在且对后面指定的备份目录拥有权限comment = Ocpyang Test #vi/usr/loc Al/rsync/rsyncd.motd++++++++++++++++++++++++++++++++++++wlecome to Ocpyang rsync services +++++++++++++++++++++++++ +++++++++++--Specifies the password for rsync access, the password does not need to be the same as the System account password # vi/usr/local/rsync/rsyncd.secrets root:snow01ln-s/usr/local/rsync/ Rsyncd.conf/etc/rsyncd.confln-s/usr/local/rsync/rSyncd.motd/etc/rsyncd.motdln-s/usr/local/rsync/rsyncd.secrets/etc/rsyncd.secretschmod 600/usr/local/rsync/ Rsyncd.secretschown root:root/usr/local/rsync/rsyncd.secrets start rsync#/usr/bin/rsync--daemon--config=/etc/ rsyncd.conf# echo "/usr/bin/rsync--daemon--config=/etc/rsyncd.conf" >>/etc/rc.d/rc.local # cat/etc/rc.d/  Rc.local #!/bin/sh## This script would be executed *after* all the other init scripts.# you can put your own initialization Stuff in this if you don ' t# want to do the full Sys V style init stuff.touch/var/lock/subsys/local/usr/bin/rsync--daemo n# NETSTAT-LNTP |        grep 873tcp 0 0 0.0.0.0:873 0.0.0.0:* LISTEN 10689/rsync TCP 0 0::: 873:::* LISTEN 10689/rsync--New test file #dd if=/dev/zero o F=/test/t01.file bs=1m Count=50#pkill rsync----3. Client server configuration (1). Create a new client password file (client without user name) #vi/etc/rsyncd.secretssnow01# chmod 600/ETC/RSYNCD.SECRETSRSYNC-VZRTOPG--PROgress--delete [EMAIL PROTECTED]::TEST/OCPYANG/RSYNC-VZRTOPG--progress--delete [email protected]::test /ocpyang/--password-file=/etc/rsyncd.pwd (3). New Sync Script # Vi/rsync.sh#!/bin/bash RSYNC-VZRTOPG--progress--delete [email  PROTECTED]::TEST/TESTBAK/RSYNC-VZRTOPG--progress--delete [email protected]::test/testbak/-- Password-file=/etc/rsyncd.pwd (4). Manually Synchronizing Files #cd/#./rsync.sh (5). Auto Sync: Sync every five minutes # crontab-e0,5 * * * */rsync.sh

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Rsync 3.1.1 Source Compilation installation Configuration

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.