Ever wanted to put together a Linux Debian mirror in an intranet with no direct access to Internet? The classical solution is, of course, rsync but what do you do when you can't access the source directly and your only way out is a HTTP proxy? The solution is debmirror. To install it: apt-get install debmirror.
First make sure that you exported your proxy server:
export http_proxy=http://proxy.localnet:portThen set up a script that runs periodically (daily, for example):
debmirror -a i386 -m -h ftp.de.debian.org -e http -d stable -d testing -d unstable --root /debian --getcontents --progress -v /mirror/debianThis is pulling the stable, testing and unstable from ftp.de.debian.org - of course you should choose whatever mirror is closer to you. If you're having problems with the PGP signatures you can add --ignore-release-gpg.
You can log the operation by adding:
1> /log/mirror-debian-repository.out.log 2> /log/mirror-debian-repository.err.log
0 comments:
Post a Comment