Chinaunix首页 | 论坛 | 博客
  • 博客访问: 13379
  • 博文数量: 9
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 100
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-26 15:03
文章分类

全部博文(9)

文章存档

2009年(9)

我的朋友
最近访客

分类: LINUX

2009-04-10 11:22:56

1. config file: /etc/rsyncd.conf
 
2. sample config file
   

uid = root
gid = root
use chroot = true
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log


[share]
path = /fileserver/share
ignore errors
read only = ture
secrets file = /fileserver/auth/backup.scrt

3. secrets file sample

root@myhost:/fileserver/auth# ls -al backup.scrt

---------- 1 root root 10 2009-01-15 16:57 backup.scrt

root@myhost:/fileserver/auth# more backup.scrt

gfebackup

root@myhost:/fileserver/auth#

 
4. Start rsync
   rsync --daemon
 
5. Add it to /etc/rc.local
阅读(356) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~