summaryrefslogtreecommitdiffstats
path: root/cron/cron
blob: c6dbf9cd4cb7d987e8e1595e7f40aeeb7fa51695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
MAILTO=sysadmin@qt-project.org

# m h  dom mon dow   command

# Probe mirrors, ensure they are up
*  * * * *     mirrorbrain   mirrorprobe

# Scan mirrors for up-to-dateness of content
45 * * * *     mirrorbrain   mb scan --quiet --jobs 4 --all

# Remove old files from db
30 1 * * mon   mirrorbrain   mb db vacuum

# Keep in sync with origin
15 * * * *     rsync -avr rsync://origin.downloads.qt-project.org/downloads/* /srv/downloads 1>/var/log/rsync.log 2>&1

# Update mirrorlist
10 2 * * * /usr/bin/mb -b main mirrorlist -f xhtml -H /srv/extra/header.inc -B /srv/extra/footer.inc -o /srv/extra/mirrors.html -I /srv/extra/flags/png/ -t "Official Qt Mirrors" -c "Official Qt Mirrors"
50 2 * * * /home/mirrorbrain/bin/getmap.sh

# Update hashes
15 * * * *     makehashes /srv/downloads -t /srv/hashes/srv/downloads #unite into one script w/ above

# Update Geo IP database
31 2 * * mon   sleep $(($RANDOM/1024)); /usr/bin/geoip-lite-update

# Update ASN list
asn_get_routeviews |asn_import