The cron jobs described below are available for automatically cleaning up the system.
To do this, first call the crontab as root:
# crontab -e
Here you insert the following lines as needed:
0 5 * * * php -f /path/to/vimp/vimp -- framework:uploads-housekeeping >> /path/to/vimp/log/housekeeping.log 2>&1
Cleans the uploads directory from orphaned files.
30 5 * * * php -f /path/to/vimp/vimp -- framework:users-housekeeping >> /path/to/vimp/log/housekeeping.log 2>&1
Cleans the user database of inactive users according to the configuration under Configuration -> Basic -> Data celanup-> Remove inactive users (default: 2 years).
0 6 * * * php -f /path/to/vimp/vimp -- framework:media-housekeeping >> /path/to/vimp/log/housekeeping.log 2>&1
Important note:
In VIMP versions lower than 6.x, please use the command /symfony instead of /vimp in the code above.
Cleans the media database from old media according to the configuration under Configuration -> Basic -> Data cleansing -> Remove old media (default: 2 years).
Where /path/to/vimp should be replaced by the corresponding path to the VIMP directory on your server.