X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=scripts%2Fcrontab.syj;h=0513a3055ed32739c440b27c101d24bc72d29f51;hb=48e5c41e67c16b83245f7ada893e92f11205a267;hp=4dfe865ee74a69faa5db4b1e40ecdbb35c719f82;hpb=03f49f88786c9eefcb850927958646266f11a86d;p=syj.git diff --git a/scripts/crontab.syj b/scripts/crontab.syj index 4dfe865..0513a30 100644 --- a/scripts/crontab.syj +++ b/scripts/crontab.syj @@ -6,6 +6,8 @@ MAILTO=arno@renevier.net # 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" -48 4 * * * psql syj syj -c "VACUUM ANALYZE paths" -48 4 * * * psql syj syj -c "VACUUM ANALYZE pending_actions" +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