script miroir ubuntu

Hervé Hounzandji herve.hounzandji at auf.org
Lun 27 Juin 08:53:07 UTC 2005


Hello,

Jean-Philippe Caruana a écrit :

>2005/6/24, Hervé Hounzandji <herve.hounzandji at auf.org>:
>  
>
>>Bonjour les amis,
>>    
>>
>
>hello
> 
>  
>
>>je suis nouvo sur la liste ubuntu.
>>Je veux avoir un miroir ftp ubuntu dans mon réso. J'ai donc installé le
>>package debmirror de debian et je merde dans le script que voici :
>>    
>>
>
><snip script>
>
>il faut que tu nous dises ce qui merde, sinon ...
>
>  
>
  J'ai refait mon script et apparemment tout est ok. Je vous fais donc 
partager mon script.

 #!/bin/sh

DESTINATION=/home/ftp/ubuntu
SERVEURSOURCE=fr.archive.ubuntu.com

echo "Miroir de $DESTINATION-security"

debmirror $DESTINATION-security --host=security.ubuntu.com \
 --arch=i386 --nosource --method=rsync \
 --root=:ubuntu \
 --dist=hoary-security \
 --section=main,multiverse,restricted,universe \
 --debug \
 --progress # décommenter pour déboguer

echo "Miroir de $DESTINATION-updates"

debmirror $DESTINATION-updates --host=$SERVEURSOURCE \
 --arch=i386 --nosource --method=rsync \
 --root=:ubuntu \
 --dist=hoary-updates \
 --section=main,restricted,multiverse,universe \
 --getcontents \
 --debug \
 --progress # décommenter pour déboguer

echo "Miroir de $DESTINATION-backports"

debmirror $DESTINATION/hoary-backports --host=$SERVEURSOURCE \
 --arch=i386 --nosource --method=rsync \
 --root=:ubuntu \
 --dist=hoary-backports \
 --section=main,restricted,multiverse,universe \
 --getcontents \
 --debug \

echo "Miroir de $DESTINATION"

debmirror $DESTINATION --host=$SERVEURSOURCE \
 --arch=i386 --nosource --method=rsync \
 --root=:ubuntu \
 --dist=hoary \
 --section=main,restricted,multiverse,universe \
 --getcontents \
 --debug \
                                  

-- 
Hervé Hounzandji
systèmes et réseaux informatiques
 






Plus d'informations sur la liste de diffusion ubuntu-fr