 # reset daily metrics for tunnels at 00:10 each morning.
10 0 2-31 * *	/usr/bin/spokes metrics reset daily

# reset monthly metrics for tunnels at 00:35 on the first
# day of each month.
30 0 1 * *	/usr/bin/spokes metrics reset monthly

# aggregate metrics data locally every 5 minutes, then 
*/5 * * * *	/usr/bin/spokes metrics update

# remove expired web sessions at 00:15 every day, this
# prevents disk space being consumed over time 
15 0 * * * /usr/bin/spokes clean sessions

# remove connection metrics > 60 days at 00:30 every day, this
# also prevents disk space being consumed over time 
30 0 * * * /usr/bin/spokes clean conn-metrics

# peform an archive of the spokes install: configuration, database,
# licenses, extra certificates, etc. every *day* at 00:30.
#
# 45 0 * * *  /usr/share/spokes/archive.sh

# rotate cron logs daily at midnight
0 0 * * * /usr/sbin/logrotate /etc/logrotate.d/cron
