View syncrepos.sh
#!/bin/bash | |
# This tool can be used to sync down Red Hat based packages from RHN using only Red Hat shipped tools | |
# Brian "Red Beard" Harrington <brian@dead-city.org> | |
# To satisfy the pre-reqs for this script install the following two rpms: | |
# yum-utils | |
# createrepo | |
download_dir="/var/www/html/RHN" | |
/usr/bin/reposync --gpgcheck -m --download-metadata -l -p ${download_dir}/ >> /var/log/reposync.log 2>&1 |