File: do-mirror

package info (click to toggle)
command-not-found 23.04.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,064 kB
  • sloc: python: 1,008; sh: 29; makefile: 9
file content (11 lines) | stat: -rwxr-xr-x 510 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
ARCH_LIST="i386,amd64,powerpc,sparc"
DIST="$(echo $0 | cut -d - -f 3)"
SECTION_LIST="main,restricted,universe,multiverse"
MIRROR_HOST="archive.ubuntu.com"
MIRROR_METHOD="rsync"
MIRROR_ROOT=":ubuntu"
OPTIONS="--verbose --nosource --progress --arch=$ARCH_LIST --dist=$DIST,$DIST-updates,$DIST-backports --section=$SECTION_LIST --ignore-release-gpg --host=$MIRROR_HOST --method=$MIRROR_METHOD --root=$MIRROR_ROOT"

debmirror $OPTIONS $MIRROR_HOST
MIRROR_HOST="security.ubuntu.com"
debmirror $OPTIONS $MIRROR_HOST