From
https://centos.org/download/mirrors/
Choose a mirror (as close as possible to you) with rsync enabled.

Rsync it to a local directory:

Something like:

rsync -aqzH --delete rsync://themirror/centos/     /path/to/local/mirror/root

Should work, but you can tweak rsync parameters.
Once you have a local copy of the mirror, use a cronjob (or similar) to execute that command once every 4 or 6 hours.
Wait some days, monitoring your mirror to be sure that everything is setup correctly.

Then, submit your mirror information to the mailing list. Here an admin will check your info and whitelist your IP to be able to access the "parent" mirror.

Once you have confirmation your IP is whitelisted, change the mirror you are using to sync to:
msync.centos.org::CentOS

So the final command could be:

rsync -aqzH --delete msync.centos.org::CentOS /path/to/local/mirror/root


Even if the steps I explained are enough, be sure to read again https://wiki.centos.org/HowTos/CreatePublicMirrors to understand everything.

Once you have your mirror setup and whitelisted you can check it here: https://mirror-status.centos.org/ (it may take some hours to be listed).

Hope it helps!



On Tue, Aug 6, 2019, 9:41 AM Nahid Rezaei <n.rezaei@respina.net> wrote:

Hi,

I’m the Infrastructure Services Manager of biggest Internet Provider in Iran . our company decided to have a public mirror in our country.
I searched but I didn’t find an official Docs for creating public mirror. just I found this link but The steps are not clear : https://wiki.centos.org/HowTos/CreatePublicMirrors

 

I will be thankful if you would help me what should I do.

 

BR,

 

 

 

 

---

Nahid Rezaei

Infrastructure Services Manager

Respina Networks & Beyond

Dedicated Bandwidth | IP Centrex | Colocation

T: +98 21 910 7 00 00

 

“You can't be all things to all people.”

― Michael Porter

 

_______________________________________________
CentOS-mirror mailing list
CentOS-mirror@centos.org
https://lists.centos.org/mailman/listinfo/centos-mirror