X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fcrontab.syj;h=0360fd4a75f2deafb6f2f9829bff6310a86f0990;hb=a3870411b5c5217e7b2f063d2929fc2e14daa962;hp=78d48bee268730f9b87cf3c5722aa9d36e610a5f;hpb=c2349d8863a6366ff512d6c895fc0b6f7ad16207;p=syj.git diff --git a/scripts/crontab.syj b/scripts/crontab.syj index 78d48be..0360fd4 100644 --- a/scripts/crontab.syj +++ b/scripts/crontab.syj @@ -5,3 +5,7 @@ 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