Nethserver.de-labrusse.fr

mirror

(Stéphane de Labrusse) #1

I synchronize your mirror each hour, available at http://nethserver.de-labrusse.fr/

I use rsync

rsync --progress -aHS --partial --delete-after rsync://pulp.nethserver.org/nethserver/ /your/directory/

what is lacked/needed

  • a timestamp file in the root folder, to see if the mirror is synchronized or not
  • in the /etc/yum.repos.d/NethForge.repo it is needed to use a ‘mirrorlist’ instead of baseurl’
  • a web page to see status mirror

(Alessio Fattorini) #2

I like this man! :+1:


(Davide Principi) #3

Right @stephdl! Just updated NethForge page here for 6.6 and mirrorlist support:
http://dev.nethserver.org/projects/nethforge/wiki/NethForge

Timestamp file will be added soon. About synchronization frequency: I was reading CentOS mirror howto: they speak about 2-4 times per day, so I was thinking about 0,6,12,18 UTC for my mirrors.

For rsync command: use “mirror.nethserver.org” in place of the legacy “pulp”.


(Stéphane de Labrusse) #4

Since your rsync server has two modules (nethforge and nethserver), do I need to download and use each one in a virtualhost, or use both in the same virtualhost. In case of the last proposition, what about of the ‘centos’ folder which is not downloaded -> http://mirror.nethserver.org/

The easier solution could be to get just one module, and use it to sync the whole repository.

actually if I use your url I get this

$ rsync --progress -aHS --partial --delete-after rsync://mirror.nethserver.org /var/www/vhosts/de-labrusse.fr/nethserver/
nethserver     	
nethforge   

and thus I need to download separately each module.


(Davide Principi) #5

Ok, I’ll arrange in the same way of 6.5


(Davide Principi) #6

Done. Changed my mirror configuration. In /etc/cron.d/sync-nethserver-mirrors:

RANDOM_DELAY=10
CRON_TZ=UTC

0 0,6,12,18 * * *	root	/usr/local/sbin/sync-nethserver-mirrors

In /usr/local/sbin/sync-nethserver-mirrors:

#!/bin/bash    
/usr/bin/rsync -aq --delete-after \
    rsync://mirror.nethserver.org/nethserver \
    /var/www/repos/nethserver/

Updated nethserver-nethforge-release RPM. Now you can install from nethserver-base!


(Giacomo Sanchietti) #7

When the mirror is ready, can be add it to the official list? @stephdl

I also would like to setup mirrormon: http://www.staff.science.uu.nl/~penni101/mirmon/


(Stéphane de Labrusse) #8

Of course you can add me to the official repository, the server is located in Germany at 1&1. I have planned to migrate to online or ovh, but I will inform you. I do Love free Software (did I never say it :slight_smile: ) and it is just one way on my personal involment.

Concerning mirmon, it is a good choice.

The mirror is in sync, maybe a good english writer should start a documentation on how to do a mirror for other people.

http://nethserver.de-labrusse.fr/


(Davide Principi) #9

This is a great present for our community! Thanks @stephdl

PS
Still lacking the timestamp file, will fix tomorrow!


(Alessio Fattorini) #10

Kudos for @stephdl :+1:


(Davide Principi) #11

Just added.

Added also timestamp.txt on the module root.

Until somebody sets up mirmon or similar, this is my mirror monitor bash function in .bashrc:


nethserver_mirrors ()
{
for M in $(curl ‘http://mirrorlist.nethserver.org/6.6/nethserver?repo=base&arch=x86_64&release=6’ 2>/dev/null | sed ‘s|6.6/base/x86_64/||’);
do
printf ‘%-47s %s\n’ $M “$(curl -q -L “${M}/timestamp.txt” 2>/dev/null)”;
done
}

(Stéphane de Labrusse) #12

vale, https://nethserver.de-labrusse.fr/plesk-stat/webstat/


(Davide Principi) #13

I moved 2 posts to a new topic: How to set up a mirror.nethserver.org mirror


(Davide Principi) #15

I moved a post to an existing topic: How to create your own NethServer mirror


Community Acknowledgments