diff options
author | doc <doc@filenotfound.org> | 2025-10-01 20:35:47 +0000 |
---|---|---|
committer | doc <doc@filenotfound.org> | 2025-10-01 20:35:47 +0000 |
commit | 772152a5810aa8c4e03cf167381aadc4ec00499f (patch) | |
tree | ba9418142f88622da878d9a3483c5da2da3e5c83 /mirror-debian.sh | |
parent | 13eb2d51c7284472efabc278bf9b7ec0b8575e47 (diff) |
Diffstat (limited to 'mirror-debian.sh')
-rwxr-xr-x | mirror-debian.sh | 7 |
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 |