rsync安装配置

rsync安装配置

一,安装
wget http://www.samba.org/ftp/rsync/rsync-3.0.3.tar.gz
tar -zxvf rsync-3.0.3.tar.gz
./configure --prefix=/data/apps/rsync-3.0.3
make && make install


二,配置
vim /etc/rsyncd.conf

uid = root
gid = root
use chroot = yes
max connections = 4
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid

三,启动rsync守护进程
/data/apps/rsync-3.0.3/bin/rsync --daemon

四,添加同步目录
[mydir]
path = /home/chenghui/mydir
hosts allow = 192.168.99.1/24
read only = yes

五,客户端同步
/usr/bin/rsync -vazu --delete 192.168.99.130::mydir /home/myname/mydir/

六,遗憾
没有找到同步源中有软链接的方法

posted on 2009-01-09 17:23  jom_ch 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/jom-ch/archive/2009/01/09/2676070.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值