Creating an Almalinux mirror using rsync. If you are running selinux, check the Timeline at the 27:10 mark.
This will also work for RockyLinux, you just have to modify the RPM-GPG-KEY file that is copied. The RockyLinux file is named RPM-GPG-KEY-rockyofficial.
Timeline.
00:44 - Create VM to hold mirror site.
04:18 - Install Nginx and rsync on VM.
07:33 - Add firewall rule allowing http.
10:00 - Create Folder structure for mirror.
11:38 - Finding a mirror site. (rsync)
18:06 - rsync from remote to local. (dry run)
20:08 - rsync from remote to local.
21:40 - Warning about .treeinfo and Appstream.
**
27:10 - SELINUX modifications needed.
**
29:14 - Install a new vm using the mirror.
31:20 - Create custom .repo file.
35:22 - Use Cron to keep site in sync.