There is my script, maybe it´ll be useful for sombody.
It has been written to be placed in admin folder and be executed by an admin.
It´s a fast solution and I haven´t translate it, so it´s "spanish code"
Hardware and performance
Problems with moodledata file permissions
This discussion has been locked so you can no longer reply to it.