Table of Contents
Cleanup
The cleanup preents unlimited growth of data. It
- deletes older logfiles
- removes database rows with outdated user sessions
As limit the configuration value ttl
will be used.
You can run the script scripts/cleanup.php
manually or in a daily cronjob.
33 3 * * * www-data php /var/www/mfa.preview.iml.unibe.ch/scripts/cleanup.php >[your-logfile] 2>&1
For better monitoring we use a Crownwrapper - see 🌐 https://www.axel-hahn.de/docs/cronwrapper/
33 3 * * * www-data /usr/local/bin/cronwrapper.sh 1440 'php /var/www/mfa.preview.iml.unibe.ch/scripts/cleanup.php' mfa-cleanup