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