-
-
Save somehume/821841fd31e9824ad0ea6f602fef333f to your computer and use it in GitHub Desktop.
This script will create a local Fedora mirror via Rsync
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
#!/bin/sh | |
rsync="rsync -avrt" | |
mirror=mirrors.kernel.org::mirrors/fedora | |
verlist="13 14" | |
archlist="i386" | |
baselist="os" | |
local=/var/www/fedrepo | |
for ver in $verlist | |
do | |
for arch in $archlist | |
do | |
for base in $baselist | |
do | |
remote=$mirror/releases/$ver/Fedora/$arch/$base/ | |
$rsync $remote $local/$ver/$arch/$base/ | |
remote_everything=$mirror/releases/$ver/Everything/$arch/$base/ | |
$rsync $remote $local/$ver/Everything/$arch/$base/ | |
remote_update=$mirror/updates/$ver/$arch/ | |
$rsync $remote_update $local/$ver/updates/$arch/ | |
done | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment