# Edit this file to introduce tasks to be run by cron.
# 
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
# 
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').# 
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
# 
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
# 
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
# 
# For more information see the manual pages of crontab(5) and cron(8)
# 
# m h  dom mon dow   command


# CSCAV Instructions:
# crontab -l  // List all existing cron jobs
# crontab -e  // Edit cron file (use this to add a new job)
# This file you're reading is a BACKUP. If you make a change to this file, then do 'crontab -l', you'll notice the change will NOT be reflected.
# So, modify this file to your liking, then use 'crontab -e' to make the changes.


# GLOBAL

# 2:45am every Saturday
45 2 * * 6 cd /etc/letsencrypt/ && ./certbot-auto renew && /opt/bitnami/ctlscript.sh restart


# GRAPEVINE

# daily at 12:05am
5 0 * * * /home/bitnami/stack/php/bin/php -q /opt/bitnami/apache2/htdocs/grapevine.today/cron/user-stats.php "purpose=scheduled-refresh&sender=cron-bot" >/dev/null 2>&1

# hourly at the 1 and 31 minute marks
1,31 * * * * /home/bitnami/stack/php/bin/php -q /opt/bitnami/apache2/htdocs/grapevine.today/cron/access-tokens.php "purpose=scheduled-refresh&sender=cron-bot&vendor=gdrive" >/dev/null 2>&1

# hourly at minute marks 2, 22, 42
2,22,42 * * * * /home/bitnami/stack/php/bin/php -q /opt/bitnami/apache2/htdocs/grapevine.today/cron/notifications.php "purpose=cron_newMessages&sender=cron-bot" mycommand >/dev/null 2>&1

# daily at 6:17pm
17 18 * * * /home/bitnami/stack/php/bin/php -q /opt/bitnami/apache2/htdocs/grapevine.today/cron/notifications.php "purpose=cron_newMatches&sender=cron-bot" mycommand >/dev/null 2>&1


# WALBUX

# daily at 10:09am   
09 10 * * * /home/bitnami/stack/php/bin/php -q /opt/bitnami/apache2/htdocs/walbux.com/public_html/automation/autopayBot.php "purpose=autopayRefresh&sender=cron-bot" >/dev/null 2>&1
