Rsync file synchronization server and client configuration

Source: Internet
Author: User
Tags rsync

rsync configuration:

#解压:
Tar zxvf rsync-3.1.1.tar.gz
CD rsync-3.1.1
#编译安装
./configure--prefix=/usr/local/rsync
Make
Make install

################ #服务端:

Vi/etc/xinetd.d/rsync
Change it to: Disable = no

#随系统启动RSYNC
Chkconfig rsync on

#配置/etc/rsyncd.conf (manual generation required, without comment)

UID = root
GID = root
Use chroot = no
Max connections = 4
Strict modes = no
Port = 873

PID file =/var/run/rsyncd.pid
Lock file =/var/run/rsync.lock
Log file =/var/log/rsyncd.log

[Test]
Path =/data/test
Hosts allow = 121.40.53.233
Auth users = Test
Secrets file =/etc/rsync.pas

# Configure/etc/rsync.pas user password
Test:123qwe

#赋权限
Chown Root.root/etc/rsync.pas
chmod 600/etc/rsync.pas

# Start
/usr/local/rsync/bin/rsync--daemon

# Check Rsync
netstat-a | grep rsync

################# Client:

# Configure/etc/rsync.pas user password
123qwe

#赋权限
Chown Root.root/etc/rsync.pas
chmod 600/etc/rsync.pas

#同步文件
/USR/LOCAL/RSYNC/BIN/RSYNC-VZRTOPG--progress--exclude=.svn--delete [email protected]::test/home/backup-- Password-file=/etc/rsync.pas


/USR/LOCAL/RSYNC/BIN/RSYNC-VZRTOPG--progress--exclude=.svn--delete [email Protected]::test/tmp/blockip-- Password-file=/etc/rsync.pas

This article is from the "apache323" blog, make sure to keep this source http://apache323.blog.51cto.com/6134209/1692449

Rsync file synchronization server and client 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.