Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

Re: Backup create empty entry (filename=".") in mdl_files table

$
0
0
by Nicolas Dalpe.  

Hi Ken,
Thx for your answer.

How often is your cron job (and thus task that clean up areas of files in moodle) running?
Crontab setting: * * * * * php /var/www/html/admin/cli/cron.php > /dev/null

My settings:
tool_recyclebin | coursebinexpiry : 1 minute
tool_recyclebin | categorybinexpiry : 1 minute

Leave DB alone...
Don't worry I only use the database as "read only". I never modify the database directly but I use it to understand how Moodle works.


The . records kinda like from OS and ls ./.
Yeah, I don't know why Moodle want to keep that record... but as usual, not understanding a feature doesn't mean there is no reason behind it... I will have to read the code to understand more about the File Storage API.


The file -b for the contenthash... in your table shared didn't see if that contenthash matched up with anything a . row or one of the .mbz files in moodledata/filedir/
Yes, it did point to a . filename. It seems


Suggest running cron ... several times from cli until it shows it did nothing ... all caught up ... and then use the file -b command again to see if 0 byte file gone.
Cron running successfully


I was just wondering about those because there are more than 2000 . entry in my database and non of them are scheduled for deletion. I'll take a deep dive into the file API code and find out why... when I have time... one day maybe...


Thank you



Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>