debian mirror

mamadou diop diopmodou8 at gmail.com
Mon Aug 23 13:41:48 CEST 2010


Hello Stephan. I have used your script and the output is:

mirrordir not specified
Usage: /usr/bin/debmirror [--debug] [--progress] [--verbose]
[--source|--nosource]
          [--md5sums] [--passive] [--host=remotehost]
          [--user=remoteusername] [--passwd=remoteuserpassword]
          [--method=ftp|hftp|http|rsync]
          [--timeout=seconds] [--root=directory]
          [--dist=foo[,bar,..] ...] [--section=foo[,bar,..] ...]
          [--arch=foo[,bar,..] ...] [--skippackages] [--getcontents]
          [--postcleanup|--cleanup|--nocleanup] [--adddir=directory]
          [--ignore=regex] [--exclude=regex] [--include=regex]
          [--exclude-deb-section=regex] [--max-batch=number]
          [--rsync-batch=number] [--ignore-missing-release]
          [--ignore-release-gpg]
          [--limit-priority=regex] [--dry-run]
          [--proxy=http://user:pass@url:port/] [--help]
          [--rsync-options=options] [--ignore-small-errors]
          [--pdiff=use|mirror|none] [--skip-installer=foo[,bar,..] ...]
          mirrordir

For details, see man page.
./mirror_jaunty: line 35: --root=ubuntu : commande introuvable
./mirror_jaunty: line 36: --arch=amd64,i386 : commande introuvable


2010/7/21 mamadou diop <diopmodou8 at gmail.com>

> 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?
>
> 2010/7/16 Stephan Hermann <sh at sourcecode.de>
>
> Hi Again,
>>
>> I'm sorry I forgot to tell you how it works:
>>
>> put the script as "mirror_ubuntu_dist.sh" somehere in your $PATH
>> then create symlinks like that:
>>
>> ln -s mirror_ubuntu_dist.sh mirror_lucid
>> ln -s mirror_ubuntu_dist.sh mirror_karmic
>>
>> then start ./mirror_lucid to debmirror ubuntu lucid
>> or ./mirror_karmic to debmirror karmic
>>
>> it creates separate debmirrors for the different releases, and not one
>> archive for all releases.
>> So you can decide which release you want, and you could put that mirror
>> on an LVM device, which you can destroy, snapshot or whatever you want
>> with it.
>>
>> Regards,
>>
>> \sh
>>  On Fri, 2010-07-16 at 10:50 +0200, Stephan Hermann wrote:
>> > On Thu, 2010-07-15 at 17:26 +0000, mamadou diop wrote:
>> > > How are you? who can give me the mkdebmirror script for Ubuntu jaunty?
>> > >
>> >
>> > I don't know what mkdebmirror script is but my personal script for
>> > debmirroring ubuntu distros is this:
>> >
>> > #!/bin/bash
>> >
>> > dist=`basename $0|cut -f2 -d "_"`
>> > DEST=/srv/mirrors
>> > if [ ! -d ${DEST} ]; then
>> >       mkdir -p ${DEST}
>> > fi
>> > if [ ! -d ${DEST}/${dist} ]; then
>> > mkdir -p ${DEST}/${dist}
>> > fi
>> >
>> > case "$dist" in
>> >
>> >
>> "dapper"|"edgy"|"feisty"|"gutsy"|"hardy"|"intrepid"|"jaunty"|"karmic"|"lucid"
>> )
>> >                 dist_all="$dist,$dist-security,$dist-updates"
>> >                 arch="amd64,i386"
>> >                 host="archive.ubuntu.com"
>> >                 rootdir="--root=ubuntu"
>> >                 ;;
>> >         "lpia"  )
>> >                 dist_all="hardy"
>> >                 arch="lpia"
>> >                 host="ports.ubuntu.com"
>> >                 rootdir="--root=/"
>> >                 ;;
>> >         * )
>> >                 dist_all="$dist"
>> >                 arch="amd64,i386"
>> >                 host="archive.ubuntu.com"
>> >                 rootdir="--root=ubuntu"
>> >                 ;;
>> > esac
>> >
>> > debmirror --progress --verbose --nosource --host=$host --method=http
>> > $rootdir --dist=$dist_all --section=main,restricted,universe,multiverse
>> > --arch=$arch  $DEST/$dist
>> >
>> >
>> > the mirrors are located under /srv/mirrors/<ubuntu-release-name like
>> > lucid>
>> >
>> > Regards,
>> >
>> > \sh
>> >
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20100823/d5b99ce0/attachment.htm 


More information about the linux-fai mailing list