首页 > 代码库 > rsync-文档

rsync-文档

wget http://dxdown3.onlinedown.net/down/rsync-3.0.9.tar.zip

gunzip rsync-3.0.9.tar.zip

tar -zxvf rsync-3.0.9.tar.gz

cd rsync-3.0.9.tar.gz

./configure --prefix=/usr/local/rsync309

make && make install


服务端:

vim /etc/rsyncd.conf

strict modes =ye

port = 873

log file = /var/log/rsyncd.log

pid file = /usr/local/rsync309/rsyncd.pid


[brand]

max connections = 10

uid = root

gid = root

path = /data/brand

ignore errors

read only = no

writee only = no

host allow = 10.0.0.0/255.0.0.0

hosts deny =

auth users = branduser

secrets file = /etc/rsync.pass


手工创建 /etc/rsync.pass

vim /etc/rsync.pass

rsyncuser:811939141329421


useradd rsyncuser

passwd rsyncuser

chmod 600 /etc/rsync.pass


/usr/local/rsync309/bin/rsync --daemon


客户端:

vim /etc/rsync.password

811939141329421


/usr/local/rsync309/bin/rsync  -vzrtopg --progress --delete --password-file=/etc/rsync.password  rsyncuser@10.10.35.97::brand  /data/brand



本文出自 “三毛JEFF” 博客,请务必保留此出处http://smucat.blog.51cto.com/2235605/1544972

rsync-文档