Mirror CentOS repositories

To mirror a CentOS repository you need to know the complete url to an existing mirror. You'll find an example configuration below. This example will mirror the CentOS 6 installation media from ftp.hosteurope.de.

<Repository centos-6-x86-64>
  url    = http://ftp.hosteurope.de/mirror/centos.org/6/os/x86_64/
  local  = centos-6-x86-64/CentOS/6/os/x86_64/
  type   = Yum
  images = true
</Repository>

It is important that the first part of the local option is the same as the repository name. (here: centos-6-x86-64).

The option images = true will also mirror the pxe/tftp boot files.