# Don't mail command output to anyone.
MAILTO=""

# Update awstats
14 2 * * * /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.nitrc.org

#
# GForge
# Copyright 1999-2001 (c) VA Linux Systems
# Copyright 2002-2004 (c) GForge, LLC, Ognyan Kulev
# http://gforge.org/
#
# @version   $Id: root,v 1.1 2007/11/20 18:47:18 rbuccigrossi Exp $
#

# Change path to the GForge directory.
GFORGE="/usr/lib/gforge"

# Change paths to the GForge directory.
# Don't reference $GFORGE because this won't work!
# You may need to change the pathname to php CLI (command line interface)
PHP="/usr/bin/php4 -d include_path=.:/usr/lib/gforge:/usr/lib/gforge/www/include:/etc/gforge/"

#
#       recalculate user popularity metric
#
10 1 * * * $PHP $GFORGE/cronjobs/calculate_user_metric.php

#
#  daily project_weekly_metric recalc
#
12 1 * * * $PHP $GFORGE/cronjobs/project_weekly_metric.php

#
#   daily deletion of sessions, closing jobs, etc
#
15 1 * * * $PHP $GFORGE/cronjobs/project_cleanup.php

#
#  daily crunching of survey data and other associated ratings
#
41 1 * * * $PHP $GFORGE/cronjobs/rating_stats.php

#
#  daily crunching of project summary data (counts)
#
45 1 * * * $PHP $GFORGE/cronjobs/db_project_sums.php

#
#   daily recalculate of the sums under the trove map
#
0,15,30,45 * * * * $PHP $GFORGE/cronjobs/db_trove_maint.php

#
#	daily close pending artifacts
#
57 1 * * * $PHP $GFORGE/cronjobs/check_stale_tracker_items.php

#
#       VACUUM should be done after ALL OTHER JOBS
#
0 2 * * *  $PHP $GFORGE/cronjobs/vacuum.php

#
#       Stats aggregation work
#
15 7 * * * $PHP $GFORGE/cronjobs/db_stats_agg.php

#
#       daily rotation of the activity_log
#
0 0 * * *  $PHP $GFORGE/cronjobs/rotate_activity.php

#
#       daily aggregating of the numbers
#
15 0 * * * $PHP $GFORGE/cronjobs/site_stats.php

#
# Hourly send pending massmailings, if any
#
47 * * * * $PHP $GFORGE/cronjobs/massmail.php

#
#       Reporting Process
#
25 7 * * * $PHP $GFORGE/cronjobs/reporting_cron.php

#
#
#	IMPORTANT!! READ THE INSTALL file before continuing!
#
#
#
#       Create the /etc/* files needed for CVS
#
10 * * * * $PHP $GFORGE/cronjobs/cvs-cron/usergroup.php

#
#       Upload the SSH key files needed for CVS
#
15 * * * * $PHP $GFORGE/cronjobs/cvs-cron/ssh_create.php

#
#       Create the blank cvs trees
#
20 * * * * $PHP $GFORGE/cronjobs/cvs-cron/cvs.php

#
#       Create the blank svn trees for SVN-over-DAV
#	(all repositories owned by apache)
#
21 * * * * $PHP $GFORGE/cronjobs/dav-svn/create_svn.php

#
#	Create CVS tarballs
#
#
5 2 * * * $PHP $GFORGE/plugins/scmcvs/cronjobs/tarballs.php

#
#	Create CVS snapshots
#
# CVSROOT and SCMSNAPSHOTSDIR variables are hard-coded in the script, so
# you'll have to edit the script if necessary.
#
35 2 * * * /bin/sh $GFORGE/plugins/scmcvs/bin/snapshots.sh generate

#
#	Create SVN tarballs
#
#
5 3 * * * $PHP $GFORGE/plugins/scmsvn/cronjobs/tarballs.php

#
#	Create SVN snapshots
#
# SVNROOT and SCMSNAPSHOTSDIR variables are hard-coded in the script, so
# you'll have to edit the script if necessary.
#
35 3 * * * /bin/sh $GFORGE/plugins/scmsvn/bin/snapshots.sh generate

#
#	Daily SVN stats collection
#
20 1 * * * $PHP $GFORGE/plugins/scmsvn/cronjobs/svn-stats.php
#
#       Daily CVS stats collection
#
20 1 * * * $PHP $GFORGE/cronjobs/cvs-cron/history_parse.php

#
#       Create the new mailing lists
#
06 * * * * $PHP $GFORGE/cronjobs/mail/mailing_lists_create.php

#
#       Create the /etc/aliases file
#
08 * * * * $PHP $GFORGE/cronjobs/mail/mailaliases.php

#
#   Send email to users with pending tasks
#
30 5 * * 1,2,3,4,5 $PHP $GFORGE/cronjobs/daily_task_email.php

#
#   BACKUP STUFF
#
00 3 * * * rm /export/home/backup/*
00 3 * * * ~/backupscripts/backup-gforge-all
00 3 * * * ~/backupscripts/backup-gforge-cvs
00 3 * * * ~/backupscripts/backup-gforge-svn
00 3 * * * ~/backupscripts/backup-postgres-db
05 3 * * * /opt/BIRN/sbin/backup.sh

#
# CLAMAV
#
MAILTO="sysadmin"
0 4 * * * nice /usr/local/bin/clamscan --recursive --infected --move=/tmp --log=/var/log/clamscan.log /var/lib/gforge

