Aparentemente está tudo certo, porém ainda assim não funciona. Devo ter feito algo errado, ou algo faltando.
#!/bin/bash
/usr/bin/rsync -avrt rsync://linux.mirrors.es.net/centos/5/updates/x86_64 --exclude=debug/
/var/www/html/centos/5/updates/
/usr/bin/createrepo --update /var/www/html/centos/5/updates/x86_64
/usr/bin/rsync -avrt rsync://linux.mirrors.es.net/centos/5/addons/x86_64 --exclude=debug/ /var/www/html/centos/5/addons/
/usr/bin/createrepo --update /var/www/html/centos/5/addons/x86_64
/usr/bin/rsync -avrt rsync://linux.mirrors.es.net/centos/5/extras/x86_64 --exclude=debug/ /var/www/html/centos/5/extras/
/usr/bin/createrepo --update /var/www/html/centos/5/extras/x86_64
/usr/bin/rsync -avrt rsync://linux.mirrors.es.net/centos/5/centosplus/x86_64 --exclude=debug/ /var/www/html/centos/5/centosplus/
/usr/bin/createrepo --update /var/www/html/centos/5/centosplus/x86_64
/usr/bin/rsync -avrt rsync://linux.mirrors.es.net/centos/5/os/x86_64 --exclude=debug/ /var/www/html/centos/5/os/
/usr/bin/createrepo --update /var/www/html/centos/5/os/x86_64