From f080dc0522db5f5a6f19c92ad54b3a9aabbe2e83 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 15 May 2018 08:55:01 +0200 Subject: find-inofficial-mirrors new to detect people rsyncing from the master mirror but not being official mirror --- find-inofficial-mirrors | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 find-inofficial-mirrors (limited to 'find-inofficial-mirrors') diff --git a/find-inofficial-mirrors b/find-inofficial-mirrors new file mode 100755 index 0000000..5f6a300 --- /dev/null +++ b/find-inofficial-mirrors @@ -0,0 +1,19 @@ +#!/bin/sh + +sudo journalctl -b "-${1:-0}" -u rsyncd | \ + grep ' rsync on archlinux32/' | \ + grep -ivwF "$( + dig pool.mirror.archlinux32.org | \ + sed -n ' + s/^pool32\.ddns\.eckner\.net\.\s.*\s/(/ + T + s/$/)/ + p + ' + )" | \ + sed ' + s/.* \(\S\+\) (\S\+)$/\1/ + ' | \ + sort | \ + uniq -c | \ + sort -k1n,1 -- cgit v1.2.3