Lowest latency would be achieved by push mirroring. Debian uses SSH keys restricted to only run the mirror command, documentation here: https://www.debian.org/mirror/push_server I personally would not install systemd services or timers on the server [previous server was FreeBSD, as well :-p ], but adding another line next to debian push mirroring setup is a no brainer. This approach needs no extra scripts to install, api calls to make, or cache files to keep in the local mirror, either. On Mon, 21 Oct 2024 at 09:30, Andrii Nikitin <andrii.nikitin@suse.com> wrote:
Hej,
On various occasions, I heard multiple requests about having a simple way to set up and maintain an openSUSE mirror. Since then I had some ideas about "projects" as they are defined at mirrors.opensuse.org, and the fact that each project may need a dedicated rsync process with customized individual check intervals and maybe some kind of notification from the server when new content is arrived, etc.
E.g. Leap iso and repo files rarely change, so they might need to be checked less frequently than Leap updates, etc. But when a big sync starts for Leap quarterly updates (.iso files) - it shouldn't delay the sync of updates for long.
With these ideas I implemented opensuse-rsync packages. Ideally users follow the following steps: * Choose a size of the mirror according to the list: https://github.com/andrii-suse/opensuse-rsync/blob/master/README.md#approxim... * Install the corresponding package, e.g. opensuse-rsync-typical (which will require approximately 1.2TB of disk space). * Enable the timers using the provided command. * Optionally add custom filters to a config. * Monitor and manage systemd services for each project.
So, the idea is that such steps might be the default set of actions to set up a mirror (but not required). Further, it will be easier to gather feedback and implement improvements or add functionality.
I would appreciate it if somebody had a chance to review this proposal and share ideas if it looks legit or why it is a bad idea. I will be glad to answer questions about the implementation or design decisions, etc.
If no feedback is provided, I probably will add it as an experimental section to the wiki and wait for somebody to try it.
Github: https://github.com/andrii-suse/opensuse-rsync OBS: https://build.opensuse.org/project/show/home:andriinikitin:opensuse-rsync
Regards, Andrii Nikitin -- Ftp mailing list Ftp@liste.linux.org.tr https://liste.linux.org.tr/cgi-bin/mailman/listinfo/ftp