rsync初试

server端rsync --daemon之后,客户端跑:

rsync -avruzb -e 'ssh -p 22222' --progress deployuser@ch2:/srvdata/ srvdata/

目前还没看出优越性,不过可以增量更新倒是很好。

rsync -a 192.168.163.143:/tmp,相当于ls命令。

增加--partial选项,可以防止忽然断开,文件没有保存的问题。


/etc/rsyncd.conf文件:

uid = root
gid = root
use chroot = no
strict modes = yes
port = 873
max connections = 10
pid file = /var/run/rsyncd.pid
motd file=/etc/rsyncd.motd
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log

[home]
path=/
comment = this is a test
ignore errors
read only = yes
list = no
auth users = root
secrets file = /etc/rsyncd.pas


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值