I am going to give you a debmirror script you can use and adapt to your need. you must save it in a script shell<br>and place it in your path.<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"|"<div id=":15n">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>
</div><br><br><br><div class="gmail_quote">2010/9/7 <span dir="ltr"><<a href="mailto:jurgen.lamsens@telenet.be">jurgen.lamsens@telenet.be</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Correct me if I'm wrong, but if i do an 'apt-get install debmirror' on ubuntu 10.04 LTS for example, there is no debmirror configuration file by default,<br>
but if I just create one, I can specify stuff like that.<br>
<br>
Just copy the example from /usr/share/doc/debmirror/examples/debmirror.conf to /etc/debmirror.conf, and adjust as necessary, f.e.:<br>
<br>
$download_method="ftp";<br>
@dists="hardy,hardy-security,hardy-updates"; # jlamsens: default was "sid"<br>
@sections="main,main/debian-installer,restricted,restricted/debian-installer,universe,multiverse"; # jlamsens: default was "main,main/debian-installer,contrib,non-free"<br>
@arches="i386,amd64"; # jlamsens: default was "i386"<br>
<br>
Kind regards,<br>
Jurgen Lamsens<br>
<br>
<br>
----- Originele e-mail -----<br>
Van: "Marcus Wellnitz" <<a href="mailto:wellnitz@datenwerk-it.de">wellnitz@datenwerk-it.de</a>><br>
Aan: <a href="mailto:linux-fai@uni-koeln.de">linux-fai@uni-koeln.de</a><br>
Verzonden: Dinsdag 7 september 2010 09:08:41 GMT +01:00 Amsterdam / Berlijn / Bern / Rome / Stockholm / Wenen<br>
Onderwerp: Re: debmirror option<br>
<div><div></div><div class="h5"><br>
Am Montag, 6. September 2010 22:52:07 schrieb mamadou diop:<br>
> Hello. Currently I am using a debmirror script to create my local mirror.<br>
> But, my problem is the size of the mirror must be about 27 Gb<br>
> (arch I386, distribution ubuntu hardy) and my free disk space is about 22<br>
> Gb. To correct this problem, i would not to use all the sections (main,<br>
> restricted, universe, multiverse) but i want to use only one or two<br>
> sections. What advises do you give me about this problem?<br>
<br>
Try to use apt-proxy.<br>
<br>
--<br>
Marcus Wellnitz<br>
Datenwerk GmbH<br>
Vogelsbergstr. 34<br>
60316 Frankfurt am Main<br>
<br>
Telefon +49 (0) 69/9434086-0<br>
Fax +49 (0) 69/9434086-9<br>
E-Mail <a href="mailto:wellnitz@datenwerk-it.de">wellnitz@datenwerk-it.de</a><br>
Web <a href="http://www.datenwerk-it.de" target="_blank">www.datenwerk-it.de</a><br>
<br>
Sitz: Frankfurt am Main, Amtsgericht Frankfurt am Main HRB 55221<br>
Geschäftsführer: Michael Beck, Dr. Thomas Latz<br>
<br>
<br>
</div></div></blockquote></div><br>