X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=scripts%2Fcrontab.syj;h=cf80bef8bc5f9279d621b420049264a8d229e65e;hb=76f5c6b6e045bfc963ea148661b135b5992a3238;hp=0513a3055ed32739c440b27c101d24bc72d29f51;hpb=e7e90673f2667d903f8ba1451963a2b3f05baf95;p=syj.git diff --git a/scripts/crontab.syj b/scripts/crontab.syj index 0513a30..cf80bef 100644 --- a/scripts/crontab.syj +++ b/scripts/crontab.syj @@ -11,3 +11,5 @@ MAILTO=arno@renevier.net 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 +# every day, database backup +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