Skip to content

Instantly share code, notes, and snippets.

@udienz
Created May 9, 2009 12:52
Show Gist options
  • Save udienz/109258 to your computer and use it in GitHub Desktop.
Save udienz/109258 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Mahyuddin Susanto
# a long time ago we use this script to maintain http://mirror.unej.ac.id
mirror=mirror.unej.ac.id
root=debian
method=http
dist=oldstable,stable,unstable,testing,experimental,etch,lenny,squeeze,sid
seksi=main,contrib,non-free
arch=i386
ke=/ftp/debian/
if [ ! -f `which debmirror` ]; then
echo "No debmirror found, use aptitude install debmirror"
exit 1
fi
/usr/bin/debmirror --progress -v --passive \
--ignore-release-gpg \
--nocleanup --nosource --ignore-missing-release \
--host=$mirror --root=$root/ \
--method=$method --dist=$dist \
--section=$seksi --arch=$arch \
$ke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment