# clean databse
#7 4 * * *  vacuumdb -afz > /dev/null 2>&1; reindexdb -a > /dev/null 2>&1;
#15 12 * * *  vacuumdb -a > /dev/null 2>&1;

#
# Dump Postgresql Databases
#
15 0,12 * * * /bin/bash -l ${HOME}/bin/bk_pg_db.sh > ${HOME}/logs/bk_pg_db.log 2>&1

#
# count concurrent user session
#
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /bin/bash -l ${HOME}/bin/stat_eztw_online_cu.sh http://localhost secure 100 >> ${HOME}/logs/eztw_stat.online_cu.$(date +"\%Y-\%m").csv
#1,6,11,16,21,26,31,36,41,46,51,56 * * * * /bin/bash -l ${HOME}/bin/stat_eztw_online_cu.sh http://localhost/test secure 100 >> ${HOME}/logs/eztw_test_stat.online_cu.$(date +"\%Y-\%m").csv

#
# To gather usage statistics for ezteamwork
#
10 0 1 * * /bin/bash -l ${HOME}/bin/stat_eztw_usage.sh "${HOME}/tm"; /bin/bash -l ${HOME}/bin/attach_eztw_usage_to_web.sh "${HOME}/tm/webapp";
