部署Rsync服务器需要创建至少 一个配置文件,默认在系统中并不存在Rsync配置文件,对于服务器而言,配置文件创建完成后,使用守护进程模式启动rsync程序即可。

使用Centos 系统安装 部署Rsync

下面的案例演示了如何共享以/common目录

# yum -y install rsync
# mkdir /common; cp /etc/init.d* /common/
# vim /etc/rsync.conf
motd file=/etc/rsyncd.motd
transfer logging = yes
log file = /var/log/rsyncd.log
pid file=/var/run/rsyncd.pid
lock file=/var/run/rsync.lock
port = 873
address=192.168.188.80
uid=root
gid=root
use chroot = no
read only = yes
max connections=10
[common]
comment=Web content
path=/common
ignore errors
auth users=tom,jerry
secrets file= /etc/rsyncd.secrets
hosts allow=192.168.0.0/255.255.255.0
hosts deny=*
list=false

 客户端同步数据

rsync -vzrtopg --progress tom@192.168.188.80::common /test

  

最新文章

  1. Week 1:2015/4/27~2015/5/3
  2. sftp上传 - 待完
  3. 整理QQ数据库sql语句
  4. 你真的会用AsyncTask吗?(一)
  5. SDUST 软件工程2016-作业4-A 百钱买鸡问题
  6. static public和 public static 区别
  7. JavaScript高级程序设计(八):基本概念--操作符
  8. iOS8的新特性
  9. 最小堆实现优先队列:Python实现
  10. Android ADT安装时卡在Calculating requirements and dependencies
  11. Anroid ListView分组和悬浮Header实现
  12. Vue源码后记-vFor列表渲染(2)
  13. SecurityException
  14. 安装pytorch成功但cuda不可用
  15. ubuntu安装matlab
  16. Apache cxf暴露接口以及客户端调用之WebService初步理解
  17. web-day15
  18. 某个 页面覆盖了 UITabBar 的tabItem的解决办法
  19. 解决IE6兼容性问题的十一大技巧
  20. Windows(x64)编译FFMPEG-2.0.1

热门文章

  1. Linux中的系统默认日志
  2. 字符串之strstr
  3. django 查询
  4. Spring:笔记整理(2)——IOC容器
  5. Django 项目补充知识(JSONP,前端瀑布流布局,组合搜索,多级评论)
  6. Loadrunder之脚本篇——参数类型
  7. $ListView的优化机制和滑动时数据错乱的讨论
  8. hadoop03---nginx+keepalived
  9. PHP汉子转拼音
  10. springboot——数据层访问搭建 集成Duid连接池