首页 > 其他 > 详细

rsync使用总结

时间:2015-10-21 20:49:03      阅读:228      评论:0      收藏:0      [点我收藏+]

(1)服务端先安装rsync。

(2) 完成配置--以下配置是需要手动创建并配置

  vim rsyncd.conf

uid = xxx
gid = xxx
port = 8099
strict modes =yes
use chroot = no
hosts allow = *
log format = "%t %a %m %f %b %P %o"
transfer logging = yes
log file = /home/xxx/rsync/log/rsync.log

[backup]
read only =no
path = /home/xxx/backup/
secrets file = /home/xxx/rsync/rsync.pas
motd file = /home/xxx/rsync/rsyncd.motd
auth users = test

  vim rsyncd.motd

Welcome the rsync services for test

  vim rsync.pas

test:123456

(3) 启动rsync

/usr/bin/rsync --daemon --config=/home/xxx/rsync/rsyncd.conf

 

(4) 客户端

  创建密码文件vim /home/rsync.pas

 123456

  传输命令:rsync -vzrtopg  --port=8099 --password-file=/home/rsync.pas /home/send_file.tgz test@ip::backup

rsync使用总结

原文:http://www.cnblogs.com/Zhspra/p/4898695.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!