rsync配置
来源:互联网 发布:淘宝淘客是什么 编辑:程序博客网 时间:2024/05/17 05:14
1.server端 : rsyncd.conf
uid = root
gid = root
use chroot = no
read only = no
hosts allow=10.0.2.0/255.255.255.0
max connections = 5
pid file = /var/run/rsyncd.pid
secrets file = /etc/rsyncd/rsyncd.secrets
motd file = /etc/rsyncd/rsyncd.motd
log file = /var/log/rsync.log
transfer logging = yes
log format = %t %a %m %f %b
syslog facility = local3
timeout = 300
[winson]
path = /home/winson/rsync
comment = test
2.安装 xinetd ,开启用xinetd 管理rsync : /etc/xinetd.d/rsync 修改 disable = no ; 重启 xinetd
3.客户端:
查看list :rsync -avzP 10.0.2.38:: ; rsync -avzP 10.0.2.38::winson
同步: rsync -avzP 10.0.2.38::winson /home/winson/rsync ; rsync -avzP --delete 10.0.2.38::winson /home/winson/rsync 删除多余的文件
上传到服务器: rsync /home/winson/rsync /xxx -avzP --delete 10.0.2.38::winson 只需要把路径对调
0 0
- rsync 配置
- rsync 配置
- rsync配置
- rsync配置
- rsync 配置
- 配置rsync
- rsync 配置
- rsync 配置
- rsync配置
- rsync配置
- rsync配置
- rsync配置
- rsync配置
- rsync配置
- rsync+ssh配置详解
- RSync服务器配置
- rsync安装配置
- rsync安装配置
- 关于报表自定义函数的应用
- Suse 11 Install KVM
- HashMap实现原理分析
- C语言:单链表内节点删除
- 【程序2】编写应用程序,创建类的对象,分别设置圆的半径、圆柱体的高,计算并分别显示圆半径、圆面积、圆周长,圆柱体的体积。
- rsync配置
- 思维导图告诉你iphone7到底有哪些亮点?
- web安全 外网可访问weblogic的控制台console威胁
- Java或Web中解决所有路径问题
- UML学习1 - UML简介
- JQuery学习笔记之change事件
- interupt ontouchevent ontouch
- POJ1062 昂贵的聘礼(dijkstra+等级约束时候松弛的判断)
- 代码-----Map<> 比较技能