[CentOS] proper recipe for local mirror

Thu Mar 4 14:04:28 UTC 2021
Adrian Sevcenco <Adrian.Sevcenco at spacescience.ro>

Hi! What is the proper solution for a local mirror for centos 7 (or oven 
8) repositories?

trying with rsync, while the packages are downloaded but the repodata is 
not and is actually impossible to be used by clients. while i try to 
recreate the repodata with
createrepo -C -d --workers=4 ${repo}
where ${repo} is the sync destination where it contains 
%arch/{Packages,repodata} directories

the clients throw errors like:
[Errno 14] HTTP Error 404 - Not Found

What am i missing?
Thanks a lot!