alternc.cron.d 1.07 KB
Newer Older
Steven Mondji-Lerider's avatar
Steven Mondji-Lerider committed
1
# Every 2 days compress log files
2
0 4 * * *	alterncpanel	/usr/lib/alternc/compress_logs.sh
Steven Mondji-Lerider's avatar
Steven Mondji-Lerider committed
3 4

# Suppress log files older than one year
5
0 4 * * *	alterncpanel	/usr/lib/alternc/delete_logs.sh
Steven Mondji-Lerider's avatar
Steven Mondji-Lerider committed
6

7
# Every day at 5am and every week at 4am, make requested SQL backups
8 9
0 5 * * *	alterncpanel	/usr/lib/alternc/sqlbackup.sh -t daily
0 4 * * 0	alterncpanel	/usr/lib/alternc/sqlbackup.sh -t weekly
10 11 12 13

# Every 5 minutes, spool waiting domain changes
*/5 * * * *	root		/usr/lib/alternc/update_domains.sh

Alan Garcia's avatar
Alan Garcia committed
14 15
# Every 5 minutes, do mails actions
*/5 * * * *	root		/usr/lib/alternc/update_mails.sh
Alan Garcia's avatar
Alan Garcia committed
16

17
# Every hour, check for slave_dns refreshes
18
5 * * * *	root            /usr/lib/alternc/slave_dns
19 20 21

# Every day at 2am, compute web, mail and db space usage per account.
# You may put this computing every week only or on your filer on busy services.
22
0 2 * * *	alterncpanel 	/usr/lib/alternc/spoolsize.php
23

24
# Once a week at 7am, optimise the AlternC database
25
0 1 * * 7	alterncpanel  	/usr/lib/alternc/alternc-dboptimize
26

27
# Every 30 minutes, do cron_users actions
28
00,30 * * * *	alterncpanel	/usr/lib/alternc/cron_users.sh