I’ve created a new mirror and would run it for a long time. It would be good if you could test it. So far everything is set up. It is running manjaro. Full setup takes only 100 MB RAM.
I have mirrored from
rsync://ftp.halifax.rwth-aachen.de/manjaro/ for now.
A systemd timer synchronizes every 30min.
That is my first Mirror Server. I would by happy to read some feedback or maybe you have some tips for me? Would be glad to hear from you.
September 15, 2020, 7:16pm
. VPS or Home server?
It is a VPS
CPU 4 vCore (Epyc 3Ghz)
normally it doesn’t need that much cpu and ram, but i will compile AUR packages on that server also.
September 15, 2020, 7:57pm
Actually a lot of RAM can safe quite some storage i/o. It’s usually always the same files/packages that are requested (with updates stable/testing/unstable). Though with ssd storage not a big deal, if it is performing well…
Tipps (well actually it is personal preferences really):
nginx instead of apache2 (at least the icons on your site seem to indicate it is apache:wink:) Nothing wrong with apache though, i just found nginx easier and faster
if you want some statistics/metrics and alerts:
https://amplify.nginx.com/ / https://www.nginx.com/products/nginx-amplify/ up to 5 servers with a free account. You get metrics like network/mem/cpu usage and webserver specific stuff…
In terms of maintaining a vps in general, not specifically a mirror:
Use ssh keys instead of pw authentication
Deny root login
Change default port of 22 to something greater than 10000. (You don’t want to know how many attempts there are to break into your sys )
I don’t know if it is faster, but apache was quite simple to configure for me. With nginx I was running in a lot of traps.
Could be useful, but i better do it the old way with ssh, screen and multitail
Was the first thing i have done
Deny root login
Was by default enabled.
Ah yes… that will be the next thing i have to do.
Thanks for the feedback. It is actually not my first server, but my first mirror server
September 15, 2020, 8:40pm
Whenever you get mail from firstname.lastname@example.org, let me know. I have some templates for replying to them (like: no my server was not hacked and is not part of a ddos network. I am hosting a mirror server for a linux distro and there was just a big update which a lot of people tried to download at the very same time)…
I will let you know if that happens… but the admin of my local hosting service know that i will run a mirror service, therefore i don’t believe they will write me. Maybe I am wrong…
The mirror is now whitelisted and ready for real long term testing. Just update the the mirror list:
sudo pacman-mirrors -c Germany
Feel free to test and report if something strange happened or i missed something. Thanks!
I configured a live-ticker with
https://goaccess.io/ that will show a live analyze of all requests. Available at https://mirror.atysleaks.org
A rsync server is established. Available at
Adding a ftp-server (maybe not needed, but nice to have one)
Adding the possibility to donate for the server if someone wish to do so.
In general I can cover the costs myself, but for a few Euros I won’t say no, because the server is meant for the community and not for me alone. Costs at the moment: 25€ per month.
The server is now running about 3 months. I call it a test period to see what are the actual needs of the server. I see that the needs are much lower.
Due a second testing time, server improvement and changing the hosting provder, the server will go offline until next year.
I apologize for any troubles.