# KSB Düren - Cron Jobs # Füge diese Zeilen zu deinem crontab hinzu: crontab -e # E-Mail-Synchronisation via OAuth2 (alle 30 Minuten) # WICHTIG: Nutzt jetzt OAuth2 statt IMAP Basic Auth */30 * * * * cd /var/www/html/ksbdueren && php bin/console app:sync-emails >> /var/log/email-sync.log 2>&1 # Outlook-Token-Refresh (alle 2 Stunden) 0 */2 * * * cd /var/www/html/ksbdueren && php bin/console app:refresh-outlook-tokens # Outlook-Synchronisation (täglich um 6 Uhr) 0 6 * * * cd /var/www/html/ksbdueren && php bin/console app:sync-all-courses # Zahlungserinnerungen (täglich um 9 Uhr) 0 9 * * * cd /var/www/html/ksbdueren && php bin/console app:send-payment-reminders # System-Logs importieren (stündlich) - nur letzte 100 Zeilen, große Dateien überspringen 0 * * * * cd /var/www/html/ksbdueren && php bin/console app:import-system-logs --source=all --tail=100 --skip-large # Messenger-Queue bereinigen (alle 6 Stunden) 0 */6 * * * cd /var/www/html/ksbdueren && php bin/console app:cleanup-messenger-queue # Cache-Bereinigung (wöchentlich) 0 2 * * 0 cd /var/www/html/ksbdueren && php bin/console cache:clear --env=prod # Log-Rotation (täglich um 3 Uhr) 0 3 * * * find /var/www/html/ksbdueren/var/log -name "*.log" -mtime +7 -delete # Prüfungsbenachrichtigungen (täglich um 8 Uhr) 0 8 * * * cd /var/www/html/ksbdueren && php bin/console app:inspection:notify 0 6 * * * cd /var/www/html/ksbdueren && php bin/console lilian-labs:fetch-data