X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=scripts%2Fcrontab.syj;h=0513a3055ed32739c440b27c101d24bc72d29f51;hb=e7e90673f2667d903f8ba1451963a2b3f05baf95;hp=78d48bee268730f9b87cf3c5722aa9d36e610a5f;hpb=c2349d8863a6366ff512d6c895fc0b6f7ad16207;p=syj.git diff --git a/scripts/crontab.syj b/scripts/crontab.syj index 78d48be..0513a30 100644 --- a/scripts/crontab.syj +++ b/scripts/crontab.syj @@ -5,3 +5,9 @@ MAILTO=arno@renevier.net 12 3 3 * * /data/project/syj/scripts/updategeoip.sh # every day, delete old sessions files 47 4 * * * find /tmp/ -name "sess_*" -user syj -ctime +45 -exec rm -f '{}' \; +# every day, vacuum tables +48 4 * * * psql syj syj -c "VACUUM ANALYZE users" > /dev/null +48 4 * * * psql syj syj -c "VACUUM ANALYZE paths" > /dev/null +48 4 * * * psql syj syj -c "VACUUM ANALYZE pending_actions" > /dev/null +# every day, clear lighttpd compress cache +12 5 * * * find /data/work/syj/lighttpd/lighttpd-cache -type f -mtime +2 | xargs -r rm