免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 935 | 回复: 0
打印 上一主题 下一主题

rsync 文件同步工具配置记录 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-06-06 10:58 |只看该作者 |倒序浏览
rsync 分为客户端和服务端,服务端安装环境 Linux AS4 2.6.9_42 软件版本:rsync-2.6.9
软件下载地址:
http://rsync.samba.org/ftp/rsync/

服务端安装过程
1.tar -xzvf rsync-2.6.9.tar.gz   #解压缩安装文件
2.cd rsync-2.6.9
3. ./configure --prefix=/usr/local/rsync #配置安装目录为/usr/local/rsync
4. make
5.make install

服务端配置记录
1. vi rsyncd.conf
uid = nobody
gid = nobody
use chroot = no
max connections = 4
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsyncd.lock
log file = /var/log/rsyncd.log
        
[test]
path = /var/test
ignore errors
read only = true
list = false
hosts allow = 192.168.0.0
hosts deny = 0.0.0.0/32
auth users = backup
secrets file = /etc/backserver.pas

:wq
2.vi /etc/backserver.pas
backup:test
:wq
3.chmod 400 /etc/backserver.pas
4.运行rsync服务 : rsync --daemon
客户端安装配置
系统环境: Linux AS4 2.6.9_42  软件版本:rsync-2.6.9
客户端安装过程
1. tar -zxvf rsync-2.6.9.tar.gz
2. cd rsync-2.6.9
3. ./configure  --prefix=/usr/local/rsync
4. make
5. make install
6. mkdir /var/test
7. chmod 777 /var/test
8. cd /usr/local/rsync/bin
9. ./rsync -vzrtopg --progress
[email=backup@192.168.10.240::test]backup@192.168.10.240::test[/email]
/var/rsync  #文件同步测试




本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/21335/showart_315752.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP