Need a how to doc on how to setup a repo server rocky 9 and rocky 8 on a rocky 9 system. This is not using the iso image

I want a general document on how to setup a repo server that uses that syncs with rocky repo server. The redhat docs don’t work because reposync asks wants to register the system.
I have been looking and dnf reposync and wget.

I have been googling and have not found a good doc.

Thank you

Donovan

Explained in Rocky documentation: Adding a Rocky Mirror - Documentation

Majority of steps still apply even if it won’t be publicly accessible - at least the rsync parts. The mirror manager bit can be omitted.