Meniu

How to create a public-official mirror for AlmaLinux in three steps

The mirrors of a project are extremely important to provide a fast and reliable infrastructure. You can create an AlmaLinux public mirror in 3 easy steps:

Step 1: Make sure you have enough free space: 150 GB is the minimum, but we recommend that you book at least 250 GB.

Step 2: Sync with the official AlmaLinux mirror via rsync:

/ usr / bin / rsync -avSH -f 'R. ~ tmp ~' --delete-delay --delay-updates rsync: //rsync.repo.almalinux.org/almalinux/ / almalinux / dir / on / your / server /

Step 3: Create a cron job to sync it periodically (we recommend updating the mirror every 3 hours):

0 * / 3 * * * / usr / bin / flock -n /var/run/almalinux_rsync.lock -c "/ usr / bin / rsync -avSH -f 'R. ~ Tmp ~' --delete-delay - delay-updates rsync: //rsync.repo.almalinux.org/almalinux/ / almalinux / dir / on / your / server / "

Your mirror does not have to have all the protocols provided by the official AlmaLinux mirror, but it must be HTTP or HTTPS.

After reviewing the pull request, your mirror can be published to mirrors.almalinux.org and will be added to the mirror lists with which the dnf package manager works.

Source: almalinux.org

FlorinM

Utilizator Linux - Solus OS, pasionat de calatorii.
  • | 2708 articole

Puiu | 2 years, 2 months

Hey, I am getting a rsync error on that:

/usr/bin/rsync -avSH -f 'R. ~ tmp ~' --delete-delay --delay-updates rsync://rsync.repo.almalinux.org/almalinux/ /R1/mirrors/alma-linux/
invalid modifier '.' at position 1 in filter rule: R. ~ tmp ~
rsync error: syntax or usage error (code 1) at exclude.c(940) [client=3.1.3]

any idea what's wrong there ?

| 2 years, 2 months
The basic syntax of the rsync command:
rsync options source destination
Its working.

  • powered by Verysign