Thank you Stephan. I simply want to say if the same script mkdebmirror (in /usr/share/doc/fai-doc/examples/utils) for Debian can be used to create his debian mirror in Ubuntu. Are there any modifications to do to adapt it for Ubuntu?<br>
<br>
<div class="gmail_quote">2010/7/16 Stephan Hermann <span dir="ltr"><<a href="mailto:sh@sourcecode.de">sh@sourcecode.de</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi Again,<br><br>I'm sorry I forgot to tell you how it works:<br><br>put the script as "mirror_ubuntu_dist.sh" somehere in your $PATH<br>
then create symlinks like that:<br><br>ln -s mirror_ubuntu_dist.sh mirror_lucid<br>ln -s mirror_ubuntu_dist.sh mirror_karmic<br><br>then start ./mirror_lucid to debmirror ubuntu lucid<br>or ./mirror_karmic to debmirror karmic<br>
<br>it creates separate debmirrors for the different releases, and not one<br>archive for all releases.<br>So you can decide which release you want, and you could put that mirror<br>on an LVM device, which you can destroy, snapshot or whatever you want<br>
with it.<br><br>Regards,<br><font color="#888888"><br>\sh<br></font>
<div>
<div></div>
<div class="h5">On Fri, 2010-07-16 at 10:50 +0200, Stephan Hermann wrote:<br>> On Thu, 2010-07-15 at 17:26 +0000, mamadou diop wrote:<br>> > How are you? who can give me the mkdebmirror script for Ubuntu jaunty?<br>
> ><br>><br>> I don't know what mkdebmirror script is but my personal script for<br>> debmirroring ubuntu distros is this:<br>><br>> #!/bin/bash<br>><br>> dist=`basename $0|cut -f2 -d "_"`<br>
> DEST=/srv/mirrors<br>> if [ ! -d ${DEST} ]; then<br>> mkdir -p ${DEST}<br>> fi<br>> if [ ! -d ${DEST}/${dist} ]; then<br>> mkdir -p ${DEST}/${dist}<br>> fi<br>><br>> case "$dist" in<br>
><br>> "dapper"|"edgy"|"feisty"|"gutsy"|"hardy"|"intrepid"|"jaunty"|"karmic"|"lucid" )<br>> dist_all="$dist,$dist-security,$dist-updates"<br>
> arch="amd64,i386"<br>> host="<a href="http://archive.ubuntu.com/" target="_blank">archive.ubuntu.com</a>"<br>> rootdir="--root=ubuntu"<br>
> ;;<br>> "lpia" )<br>> dist_all="hardy"<br>> arch="lpia"<br>> host="<a href="http://ports.ubuntu.com/" target="_blank">ports.ubuntu.com</a>"<br>
> rootdir="--root=/"<br>> ;;<br>> * )<br>> dist_all="$dist"<br>> arch="amd64,i386"<br>> host="<a href="http://archive.ubuntu.com/" target="_blank">archive.ubuntu.com</a>"<br>
> rootdir="--root=ubuntu"<br>> ;;<br>> esac<br>><br>> debmirror --progress --verbose --nosource --host=$host --method=http<br>> $rootdir --dist=$dist_all --section=main,restricted,universe,multiverse<br>
> --arch=$arch $DEST/$dist<br>><br>><br>> the mirrors are located under /srv/mirrors/<ubuntu-release-name like<br>> lucid><br>><br>> Regards,<br>><br>> \sh<br>><br><br><br><br></div></div>
</blockquote></div><br>