[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian mirror para mi red LOCAL



Gracias por el apoyo Jesus.
Slds

Jesus Vasquez escribió:
Yo hice un mirror debian para x86 sarge, etch, sid debian-security y de marillat usando este script es muy efectivo.Saludos.

Hice un script y lo llame mirror.sh con esto:

/#!/bin/sh/
/# Mirrorea debian /
/# Version 1.0 - 17.ene.2005/
/# 0 corre en modo consola con feedback a stdout/
/# 1 corre en modo batch con feedback a /var/log/syslog/
SILENT=0

DEBMIRROR=/usr/bin/debmirror

*function** bajo_mirror* *{*

    *if** [* $SILENT -eq 1* ]*; *then*            /usr/bin/logger "Inicio actualizacion mirror $DISTRO"
        PROGRESO=""
    *else*
        *echo* Distro:     $DISTRO
        *echo* Section:    $SECTION
        *echo* Server:     $HOST
        *echo* Mirror en:  $LOCATION
        PROGRESO="-p -v"
    *fi*
    
    /#TEST="--dry-run"/
    *su* mirror -c "$DEBMIRROR $TEST $PROGRESO --method $METHOD -h $HOST -d $DISTRO --root $REPOSIT --nosource -s $SECTION $LOCATION --arch=i386 --cleanup"

    *if** [* $SILENT -eq 1* ]*; *then*
        /usr/bin/logger "Final actualizacion mirror $DISTRO"
    *else*
        *echo* "===================================================="
    *fi*
*}*

/#DISTRO=sid,sarge/
DISTRO=stable,testing,unstable
SECTION=main,contrib,non-free,main/debian-installer
LOCATION=/mirror/debian
REPOSIT=/debian
/#HOST=ftp.de.debian.org/
/#HOST=ftp.se.debian.org/
/#HOST=ftp.rediris.es/
HOST=ftp.fr.debian.org
/#HOST=ftp.us.debian.org/
METHOD=http

bajo_mirror

DISTRO=sarge,etch,sid
SECTION=main
LOCATION=/mirror/marillat
REPOSIT=/debian-marillat
HOST=ftp.nerim.net
METHOD=ftp

bajo_mirror

DISTRO=sarge/updates,etch/updates
SECTION=main,contrib,non-free
LOCATION=/mirror/security
REPOSIT=/debian-security
HOST=security.debian.org/
METHOD=http

bajo_mirror

*exit* 0

Saque esta informacion de estos dos enlaces donde se explica muy claro como hacer el mirror:

http://www.pilas.net/?p=54

http://www.lug-untermain.de/howto/debmirror.php



-- 
Slds

Mario Durand S.



Reply to: