[建议]镜像整个Ubuntu源,并通过ubuntu官方镜像源认证
发表于 : 2008-05-29 9:59
如何镜像整个官方源:
将这个脚本保存下来,设置每天自动执行一次即可。
Ubuntu@UESTC(http://ubuntu.dormforce.net/)
中国大陆地区目前有5个官方认证的镜像站点
可以到这里查询
https://launchpad.net/ubuntu/+archivemirrors
注册处:
https://launchpad.net/ubuntu/+newmirror
代码: 全选
#!/bin/bash
RSYNCSOURCE=rsync://archive.ubuntu.com/ubuntu
BASEDIR=/path/to/your/mirror/
rsync --recursive --times --links --hard-links \
--stats \
--exclude "Packages*" --exclude "Sources*" \
--exclude "Release*" \
${RSYNCSOURCE} ${BASEDIR}
rsync --recursive --times --links --hard-links \
--stats --delete --delete-after \
--exclude "project/trace/${HOSTNAME}" \
${RSYNCSOURCE} ${BASEDIR}
Ubuntu@UESTC(http://ubuntu.dormforce.net/)
中国大陆地区目前有5个官方认证的镜像站点
可以到这里查询
https://launchpad.net/ubuntu/+archivemirrors
注册处:
https://launchpad.net/ubuntu/+newmirror