From 772152a5810aa8c4e03cf167381aadc4ec00499f Mon Sep 17 00:00:00 2001 From: doc Date: Wed, 1 Oct 2025 20:35:47 +0000 Subject: mirror scripts --- mirror-debian.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 mirror-debian.sh (limited to 'mirror-debian.sh') diff --git a/mirror-debian.sh b/mirror-debian.sh new file mode 100755 index 0000000..d4a81e8 --- /dev/null +++ b/mirror-debian.sh @@ -0,0 +1,7 @@ +#!/bin/bash +LOG="/var/log/ftpsync/cron.log" +LOCK="/var/lock/debian.lock" + +sleep $((RANDOM % 600)) +exec flock -n "$LOCK" \ + /root/archvsync/bin/ftpsync sync:all > /var/log/mirrors/therealdebian.log -- cgit v1.2.3