Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #repo-setup.sh
- verlist="5 6"
- archlist="x86_64 i386"
- baselist="addons contrib extras iso os updates"
- local=/var/www/html/centos
- for ver in $verlist
- do
- for base in $baselist
- do
- for arch in $archlist
- do
- path=$local/$ver/$base/$arch/
- mkdir -pv $path
- cd $path
- reposync .
- done
- done
- done
- #!/bin/bash
- # repo-sync.sh
- rsync="rsync -avrt --exclude=debug/"
- mirror=rsync://mirrors.kernel.org/centos
- verlist="5 6"
- archlist="x86_64 i386"
- baselist="addons contrib extras iso os updates"
- local=/var/www/html/centos
- for ver in $verlist
- do
- for base in $baselist
- do
- for arch in $archlist
- do
- path="$ver/$base/$arch/"
- $rsync $mirror/$path $local/$path
- done
- done
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement