#!/bin/bash
set -ex
archs="i386"
dists="parkes"
sec="main"
host="download.nus.edu.sg"
secdists="parkes"
secsec="updates/main"
secroot="/mirror/gnewsense/gnewsense-three/gnewsense-security"
mirrorsite="/var/www/htdocs/gnewsense/gnewsense-three"
destpath="$mirrorsite/gnewsense/"
destpathsec="$mirrorsite/gnewsense-security/"
sharedopts="--verbose --diff=none --getcontents --ignore-missing-release --ignore-release-gpg --arch $archs --allow-dist-rename --source"
echo "std dists"
/usr/bin/debmirror --method=http \
--nocleanup \
$sharedopts \
--dist $dists \
--section=$sec \
--host $host \
--root $root \
$destpath
echo "sec dists"
/usr/bin/debmirror --method=http \
--nocleanup $sharedopts \
--dist $secdists \
--section=$secsec \
--host $host --root $secroot \
$destpathsec
Tuesday, July 31, 2012
Gnewsense debmirror script
Have been working on my mirror server again. Decided to get the Gnewsense mirror fixed. Here is my Gnewsense debmirror script (may not need all the quotes);
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment