summaryrefslogtreecommitdiff
path: root/mirror-debian.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mirror-debian.sh')
-rwxr-xr-xmirror-debian.sh7
1 files changed, 7 insertions, 0 deletions
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