[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

sarge 的i386 本地镜像



本来这个应该用bash来完成,
但还是用php比较顺手一点,就用php做了一个脚本 ftp://debian.anheng.com.cn/debian_lt/debian_lt.php
脚本检查Packages文件,从完整的镜像目录筛选出 sarge的i386的bin的deb包,
然后比较以前的目标目录,只对变化过的文件进行删除或复制操作。

完成的一个发布镜像,大约9G, 比较适合放进笔记本或活动硬盘。

通过修改anonftpsync来做的,要20G, 有点太大。

php脚本在ftp://debian.anheng.com.cn/debian_lt/debian_lt.php,
这个脚本的运行需要在本地有完整的镜像,当然通过修改也可以实现远程抓取。
或者如果目标镜像跟源镜像在同一个卷,可以把目标文件做成硬联接

做好的i386二进制only镜像如下,
rsync://debian.anheng.com.cn/debian_lt main non-free contrib
http://debian.anheng.com.cn/debian_lt main non-free contrib
ftp://debian.anheng.com.cn/debian_lt main non-free contrib
体积9.2G

Reply to: