基于 Ubuntu 8.10:
由于OE的编译目录比较大,现在完全编译后的workspace目录已经达到了30多G,而且一台服务器上如果有很多人同时build的话,服务器磁盘性能会急剧下降,并且CPU也显的不够用的了。
为了解决这个问题,决定搭建rsync服务器,以把服务器上的oe stuff目录,同步到其他机器上。
参考:
http://blog.chinaunix.net/u1/34010/showart_262609.html
http://www.cnblogs.com/licheng/archive/2008/01/21/1047620.html
为了内部同步方便,我没有在rsync中设置用户权限以及ip验证之类的。
/etc/rsyncd.conf:
root@compiler etc $ cat rsyncd.conf minimal configuration file for rsync daemon # See rsync(1) and rsyncd.conf(5) man pages for help # This line is required by the /etc/init.d/rsyncd script pid file = /var/run/rsyncd.pid #port = 873 #address = 172.16.49.1 #uid = nobody #gid = nobody uid = root gid = root use chroot = yes read only = yes #limit access to private LANs #hosts allow=192.168.9.0/255.255.255.0 #hosts deny=* max connections = 5 #motd file = /etc/rsyncd/rsyncd.motd #This will give you a separate log file log file = /var/log/rsync.log #This will log every file transferred - up to 85,000+ per user, per sync transfer logging = yes log format = %t %a %m %f %b syslog facility = local3 timeout = 300 [stuff] path = /home/tnote_image/stuff list=yes ignore errors #auth users = tnote_image #secrets file = /etc/rsyncd/rsyncd.secrets comment = stuff rsync source
|
然后使用 rsync --daemon --config=/etc/rsyncd.conf
直接使用/etc/init.d/rsync还有点问题,在解决中。
客户端用法:
time rsync -a 192.168.0.99::stuff ./stuff
可下载版本,带有include from字段来决定要导出哪些文件。
|
文件: | rsync.tar.gz |
大小: | 0KB |
下载: | 下载
|
|
阅读(514) | 评论(0) | 转发(0) |