I tried to look into this issue as much as possible. For past 2 weeks our moodledata\temp folder has been filling up overnight by 300-400GB+ causing the following error for users- "can not create local file pool file, please verify permissions in dataroot and available disk space" as we run out of space. It seems to be the same 12-15 course backups being recreated (some 30, 40GB in size). Looking at the courses it seems as if lots of content was deleted and I can only assume the users made a backup of the courses beforehand?
I clear these files out manually from the temp\backup folder but may need to set up some sort of scheduled task. Looking through other threads, it looks as though Moodle stores the backup\restore files here as it builds them, then deletes these files except when it has failed? I hope my understanding is correct? That these are where failure to backup\restore has taken place. I am just wondering why these backups keep being recreated- I can understand if user kept doing it as it failed, then it may appear several times, but these appear late at night, early in morning.
Automated backup setup is disabled, the cron task '\core\task\automated_backup_task' is disabled, and the mdl_config_tbl backup backup_auto_active is set to 0.
We do have recycle bin enabled (30 days) and wondering if the delete\backup, recycle bin setup is causing this? Any thoughts or suggestions would be greatly appreciated.