-
Notifications
You must be signed in to change notification settings - Fork 0
/
crontab.txt
36 lines (27 loc) · 2.07 KB
/
crontab.txt
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
29
30
31
32
33
34
35
36
#No comment
MAILTO=romain@psg.com
#No comment
SHELL=/usr/bin/zsh
#No comment
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/home/romain/.local/bin
HOST_ALIAS=eric
KAFKATB_ENV=/home/romain/Projects/ihr/kafka-toolbox/ihr.env
# Backup this crontab
3 * * * * cd /home/romain/Projects/ihr/infra/; crontab -l > $HOST_ALIAS/romain; git add $HOST_ALIAS/romain; git commit -m 'sync'; git push
# Store AS hegemony data
# Doesn't work if started before we have data there?
10 2 * * * docker run --rm --name ihr_hegemony_sink_4 --env-file $KAFKATB_ENV internethealthreport/psql_consumers ASHegemony.py ihr_hegemony 4
0 5 * * * docker run --rm --name ihr_hegemony_sink_6 --env-file $KAFKATB_ENV internethealthreport/psql_consumers ASHegemony.py ihr_hegemony_v6 6
0 20 * * * docker run --rm --name ihr_hegemony_prefix_sink_6 --env-file $KAFKATB_ENV internethealthreport/psql_consumers ASHegemony_prefix.py ihr_hegemony_prefix_ipv6 6 ; docker run --rm --name ihr_hegemony_prefix_sink_4 --env-file $KAFKATB_ENV internethealthreport/psql_consumers ihr_hegemony_prefix_ipv4 4
# Update RPKI, IRR, delegated files (not needed if ihr_hegemony_prefix run in docker)
# 5 0 * * * rov --update 1.1.1.0/24 13335
# Daily dumps
0 8 * * * cd /home/romain/Projects/ihr/psql-dump; python3 dumpit.py --config configs/ROV.json
0 12 * * * cd /home/romain/Projects/ihr/psql-dump; python3 dumpit.py --config configs/ASHegemony_v4_global.json
10 12 * * * cd /home/romain/Projects/ihr/psql-dump; python3 dumpit.py --config configs/ASHegemony_v6_global.json
15 12 * * * cd /home/romain/Projects/ihr/psql-dump; python3 dumpit.py --config configs/ASHegemony_v4_local.json
30 12 * * * cd /home/romain/Projects/ihr/psql-dump; python3 dumpit.py --config configs/ASHegemony_v6_local.json
0 0 * * TUE cd /home/romain/Projects/ihr/psql-dump; python3 dumpit.py --config configs/tr_hegemony.json
45 12 * * * cd /home/romain/Projects/ihr/psql-dump; rsync -a dumps/ihr/ ihr-archive.iijlab.net:/var/www/html/ihr > log/rsync.log
# Update AS Names
30 0 * * * cd /home/romain/Projects/ihr/AS-names; python3 asnames.py