Parent Directory | Revision Log
make small debian mirror (hum? Just 12Gb for sid?)
1 | dpavlin | 11 | #!/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/" |
Name | Value |
---|---|
svn:executable | * |
ViewVC Help | |
Powered by ViewVC 1.1.26 |