# Edit crontab: crontab -e

# Daily at midnight - Check expired subscriptions
0 0 * * * /usr/bin/php /path/to/scripts/check-subscriptions.php >> /path/to/logs/cron.log 2>&1

# Daily at 9 AM - Send follow-up reminders
0 9 * * * /usr/bin/php /path/to/scripts/send-reminders.php >> /path/to/logs/cron.log 2>&1

# Daily at 2 AM - Database backup
0 2 * * * /usr/bin/php /path/to/scripts/backup-database.php >> /path/to/logs/cron.log 2>&1

# Weekly on Sunday at 3 AM - Optimize database
0 3 * * 0 /usr/bin/php /path/to/scripts/optimize-database.php >> /path/to/logs/cron.log 2>&1

# Weekly on Monday at 4 AM - Generate sitemap
0 4 * * 1 /usr/bin/php /path/to/scripts/generate-sitemap.php >> /path/to/logs/cron.log 2>&1

# Hourly - Clean temp files
0 * * * * /usr/bin/php /path/to/scripts/cleanup-temp.php >> /path/to/logs/cron.log 2>&1