forked from linuxfrorg/admin-linuxfr.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
crontab
27 lines (17 loc) · 732 Bytes
/
crontab
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
Crontab de linuxfr :
SHELL=/bin/bash
# Maintenance une fois par jour : votes, karmas, tribunes, sitemap, etc.
1 0 * * * bundle exec rake -s linuxfr:daily
Crontab de root :
SHELL=/bin/bash
SCRIPTS_DIR=/etc/linuxfr
# traitement des logs et sauvegarde journalière
15 3 * * * cd ${SCRIPTS_DIR} && ./backup-linuxfr-daily.sh
# sauvegarde hebdo
15 5 * * 0 cd ${SCRIPTS_DIR} && ./backup-linuxfr-weekly.sh
# courbes RRD surveillance serveur
0-59/1 * * * * cd ${SCRIPTS_DIR} && ./rrd/makestats.sh &>/dev/null
# script abusers
0 * * * * cd ${SCRIPTS_DIR} && ./abusers.sh
# extraction des données de webalizer
5 3 1 * * cd /data/prod/logs/webalizer && ${SCRIPTS_DIR}/webalizer_data.sh