1 MAILTO=arno@renevier.net
2 # every 5 minutes, call syj php cron
3 */5 * * * * /data/project/syj/scripts/cron.php
4 # every month, update geoip db
5 12 3 3 * * /data/project/syj/scripts/updategeoip.sh
6 # every day, vacuum tables
7 48 4 * * * psql syj syj -c "VACUUM ANALYZE users" > /dev/null
8 48 4 * * * psql syj syj -c "VACUUM ANALYZE paths" > /dev/null
9 48 4 * * * psql syj syj -c "VACUUM ANALYZE pending_actions" > /dev/null
10 # every day, clear lighttpd compress cache
11 12 5 * * * find /data/work/syj/lighttpd/lighttpd-cache -type f -mtime +2 | xargs -r rm
12 # every day, database backup
13 12 16 * * * pg_dump -t paths -t paths_id_seq -t pending_actions -t pending_actions_id_seq -t users -t users_id_seq | gzip > /data/project/syj/backups/db_$(date +'\%Y-\%m-\%d').gz