-
-
Save axeliodiaz/fce64f1f76d54d05c98d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
host=http://cdn.debian.net | |
host_multimedia=deb-multimedia.org | |
host_security=security.debian.org | |
root=debian | |
root_multimedia=/ | |
root_security=/ | |
dist=wheezy | |
dist_security=wheezy/updates | |
dist_backports=wheezy-backports | |
dist_updates=wheezy-updates | |
method=http | |
section=main,contrib,non-free | |
arch=i386,amd64 | |
path=/var/www/debian/ | |
if [ ! -f `which debmirror` ]; then | |
echo "No debmirror found, use aptitude install debmirror" | |
exit 1 | |
fi | |
echo "\n*** Debian ***\n" | |
## Debian wheezy | |
debmirror --debug \ | |
--progress \ | |
--verbose \ | |
--diff=none \ | |
--host=$host \ | |
--root=$root \ | |
--method=http \ | |
--dist=$dist \ | |
--arch=$arch \ | |
--nosource \ | |
--section=$section \ | |
--getcontents \ | |
--ignore-release-gpg \ | |
--ignore-missing-release \ | |
$path | |
echo "\n*** Debian wheezy-updates ***\n" | |
## Debian wheezy-updates | |
debmirror --debug \ | |
--progress \ | |
--verbose \ | |
--diff=none \ | |
--host=$host \ | |
--root=$root \ | |
--method=http \ | |
--dist=$dist_updates \ | |
--arch=$arch \ | |
--nosource \ | |
--section=$section \ | |
--getcontents \ | |
--ignore-release-gpg \ | |
--ignore-missing-release \ | |
$path | |
echo "\n*** Debian Seguridad ***\n" | |
## Debian-security wheezy | |
debmirror --debug \ | |
--progress \ | |
--verbose \ | |
--diff=none \ | |
--host=$host_security \ | |
--root=$root_security \ | |
--method=http \ | |
--dist=$dist_security \ | |
--arch=$arch \ | |
--nosource \ | |
--section=$section \ | |
--getcontents \ | |
--ignore-release-gpg \ | |
--ignore-missing-release \ | |
$path | |
echo "\n*** Debian Multimedia ***\n" | |
## Debian-multimedia wheezy | |
debmirror --debug \ | |
--progress \ | |
--verbose \ | |
--diff=none \ | |
--host=$host_multimedia \ | |
--root=root_multimedia \ | |
--method=http \ | |
--dist=$dist \ | |
--arch=$arch \ | |
--nosource \ | |
--section=$section \ | |
--getcontents \ | |
--ignore-release-gpg \ | |
--ignore-missing-release \ | |
$path | |
echo "\n*** Debian Backports ***\n" | |
## Debian-backports wheezy | |
debmirror --debug \ | |
--progress \ | |
--verbose \ | |
--diff=none \ | |
--host=$host \ | |
--root=root \ | |
--method=http \ | |
--dist=$dist_backports \ | |
--arch=$arch \ | |
--nosource \ | |
--section=$section \ | |
--getcontents \ | |
--ignore-release-gpg \ | |
--ignore-missing-release \ | |
$path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment