Purpose of the query was to discover IF there were any files in the area of assignment submissions. Were there?
Did you see any rows like the example given previously?
According to what you've shared, the 'recyclebin' isn't 'empty' ... I see some backup.mbz's that have small sizes. And they do reference a 'course'.
On your system, who (what account) is userid 5. Is that user an admin level account? (no names please ... just the role of that user in your moodle).
Before those disappear (get moved to trashdir) see if they exist and what they are.
Take the contenthash of the first one in your listing.
1141bunchofotherlettersnumbers
Using ssh and logged on as root.
cd /path/to/moodledata/filedir/
find ./ -name 1141bunchofotherlettersnumbers
That command might take a long time depending upon site of filedir.
It should kick out:
/11/41/1141bunchofotherlettersnumbers
See if it's really a .mbz file (which is really a gzipp'd file:
file -b /11/41/1141bunchofotherlettersnumbers
should show: gzip compressed data, from Unix
To find out what's in it:
cp /11/41/1141bunchofotherlettersnumbers /tmp/
cd /tmp
mv 1141bunchofotherlettersnumbers some.mbz
tar tvf some.mbz
That should show contents of the .mbz file and the key file for any moodle backup is the presence of moodle_backup.xml
To extract just the moodle_backup.xml file if present:
tar -zxvf some.mbz moodle_backup.xml
Then
head -n 40 moodle_backup.xml
will give more info.
As your question ... unkown. Have not a clue as to what happened.
Am trying to help you discover what you have.
'SoS', Ken