[CentOS] proper recipe for local mirror

Sat Mar 6 17:57:21 UTC 2021
Adrian Sevcenco <Adrian.Sevcenco at spacescience.ro>

Hi!

On 3/4/21 5:01 PM, Simon Matter wrote:
>> 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
> 
> Hi,
> 
> The script below is how I sync CentOS to a local mirror which is then used
> directly by the clients, no createrepo needed.
well, thanks a lot!! due to your script i noticed that the mirror that i 
used does not sync the sqlite and xml files from repodata (only 
repomd.xml and repomd.xml.asc)

i changed the mirror and everything worked flawless :)

Thanks a lot!
Adrian