blob: fd4b5f4e022b679841275996e508a832fad69601 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/bin/sh
# fait un miroir local des updates et le tient à jour
SOURCE=ftp://ftp.free.fr/mirrors/ftp.mandriva.com/MandrivaLinux/official/2010.2/
DEST=/home/pierre/mdv/upd-2010.2/
export TMPDIR=/tmp
#/etc/init.d/dnsmasq stop
for mir in \
x86_64/media/contrib/updates/ \
x86_64/media/main/updates/ \
x86_64/media/non-free/updates \
i586/media/contrib/updates/ \
i586/media/main/updates/ \
i586/media/non-free/updates
do
echo " En cours : $mir"
mirrordir --no-chown $SOURCE/$mir $DEST/$mir
done
SOURCE=ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/plf/mandriva/2010.2/
echo " En cours : plf-free x86_64 "
mirrordir --no-chown $SOURCE/free/release/binary/x86_64 $DEST/free/release/binary/x86_64/
echo " En cours : plf-non-free x86_64 "
mirrordir --no-chown $SOURCE/non-free/release/binary/x86_64 $DEST/non-free/release/binary/x86_64/
echo " En cours : plf-free i586 "
mirrordir --no-chown $SOURCE/free/release/binary/i586 $DEST/free/release/binary/i586
echo " En cours : plf-non-free i586 "
mirrordir --no-chown $SOURCE/non-free/release/binary/i586 $DEST/non-free/release/binary/i586
#/etc/init.d/dnsmasq start
echo "Miroirs $DEST à jour : `date`"
|