/[scripts]/trunk/small-deb-mirror.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/small-deb-mirror.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11 - (show annotations)
Mon Jan 10 14:49:47 2005 UTC (17 years, 10 months ago) by dpavlin
File MIME type: application/x-sh
File size: 811 byte(s)
make small debian mirror (hum? Just 12Gb for sid?)

1 #!/bin/sh
2
3 from="rem.pliva.hr:/mirrors/debian/pub/debian"
4 to="/mnt/mirrors/debian"
5 dist="sid"
6
7 OPT="
8 --exclude "*-alpha" \
9 --exclude "*-arm" \
10 --exclude "*-hppa" \
11 --exclude "*-ia64" \
12 --exclude "*-m68k" \
13 --exclude "*-mips" \
14 --exclude "*-mipsel" \
15 --exclude "*-powerpc" \
16 --exclude "*-s390" \
17 --exclude "*-sparc" \
18 "
19 rsync -rav --delete $OPT "$from/dists/$dist/" "$to/dists/$dist/"
20 rsync -rav --delete $OPT "$from-non-US/dists/$dist/" "$to-non-US/dists/$dist/"
21
22 grep ^Filename: $to/dists/$dist/*/binary-i386/Packages | sed 's#^.*Filename: *##' > /tmp/pool
23 grep ^Filename: $to-non-US/dists/$dist/non-US/*/binary-i386/Packages | sed 's#^.*Filename: *##' > /tmp/pool-non-US
24
25 rsync -av --delete --files-from=/tmp/pool "$from/" "$to/"
26 rsync -av --delete --files-from=/tmp/pool-non-US "$from-non-US/" "$to-non-US/"

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26