Skip to content

Instantly share code, notes, and snippets.

@pierew
Created October 31, 2016 22:21
Show Gist options
  • Save pierew/6d1611b7b5f5e829094c356dfbbb4fd3 to your computer and use it in GitHub Desktop.
Save pierew/6d1611b7b5f5e829094c356dfbbb4fd3 to your computer and use it in GitHub Desktop.
How To Mirror archive.raspberrypi.org - Define which folders by changing and Adding Lines, it will add recursive
#!/bin/bash
cd <INSERT FOLDER TO DOWNLOAD TO>
# LOAD GPG KEY
echo "Loading GPG Key..."
wget http://archive.raspberrypi.org/debian/raspberrypi.gpg.key
# LOAD JESSIE
echo "Loading dists/jessie..."
wget -nv --progress=bar -N -m --no-parent --cut-dirs=1 --reject "*.html*" http://archive.raspberrypi.org/debian/dists/jessie/
# LOAD wheezy
echo "Loading dists/wheezy..."
wget -nv --progress=bar -N -m --no-parent --cut-dirs=1 --reject "*.html*" http://archive.raspberrypi.org/debian/dists/wheezy/
# LOAD POOLS
echo "Loading Standard Pools..."
wget -nv --progress=bar -N -m --no-parent --cut-dirs=1 --reject "*.html*" http://archive.raspberrypi.org/debian/pool/ui/
wget -nv --progress=bar -N -m --no-parent --cut-dirs=1 --reject "*.html*" http://archive.raspberrypi.org/debian/pool/main/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment