
#############################################################################################
# this file is for default groovix cron jobs only.  custom goes into groovix-server-custom
#############################################################################################

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name command to be executed

#reboot every Wednesday @ 2:15
15 2 * * 3 root shutdown -r now


##################################################################################
#gxrelease
##################################################################################
#move all print jobs to old at 1AM every day
0 1 * * * root /var/www/html/groovix/gxrelease/move_to_old.bash

#for running stats on server on the first of the month
0 6 1 * * root  /var/www/html/groovix/gxrelease/run_monthly_report.bash

##################################################################################
#stats
##################################################################################
#auto list generation based on cmon pages
30 4 1 * * root  /var/www/html/groovix/stats/generate_lists.bash

#for running stats on server on the first of the month
0 5 1 * * root  /var/www/html/groovix/stats/run_monthly_report.bash

#if this is a normal machine that is not on all the time, run stats first few days of the month in case of holidays, sundays, etc.
#run at noon in case of late opening
#0 12 1-5 * * root /var/www/html/groovix/statistics/run_monthly_report.bash --overwrite

#yearly stats
10 10 1 1 * root /var/www/groovix/stats/run-yearly-report.bash

#for running printing stats on server on the first of the month
0 6 1 * * root  /var/www/groovix/gxrelease/run_monthly_report.bash


##################################################################################
# backup
##################################################################################

#weekly local backup
0 22  * * 2 root /var/www/html/groovix/backup/groovix-snapshot.bash
#weekly sync to groovix server
#0 23  * * 3 root /var/www/html/groovix/backup/sync-groovix-backups.bash
#monthly local archival, maybe 6th day of month after stats have run
#30 22 6 * * root /var/www/html/groovix/backup/archive-last-groovix-snapshot.bash


