Re: Automated Backups not Listed in Course Restore Window
@Debbie ...
You've posted in a discussion thread that took place in 2013.
While your question might seem related, it's probably best to start your own thread stating your problem ... this one is about backups not listed in course restore Window.
'Are these backup files and can I remove them?' might be a good topic line in your posting.
Might also include basic information about server ... like Moodle version, etc.. As well as other (might be related) info .... like we run autobackups, we had run autobackups, etc., etc.
'spirit of sharing', Ken
No need to start a new thread Debbie, as I've split your post and renamed it as suggested by Ken.
Thanks, Helen ...
@Debbie ...
From what you've shared so far ... think you are using Linux ... some of the following is for Linux.
Moodle versions prior to 2.6.x still used .zip as backups.
At that version there was an option to turn on experimental compression using gzip. Backup files retained their .mbz extension.
Size could be an indication they are backups, but they could also be videos or other file types.
file -b /moodledata/path/to/file
If that command responds with:
gzip compressed data, from Unix
They are, more than likely, backups (.mbz's)
If that command responds with:
Zip archive data, at least v2.0 to extract
It is a zip file and might be a link created by a teacher in their course
for resource files.
To double sheck do a query on the DB for your Moodle on mdl_files table.
select contenthash,filename,filesize,filearea from `mdl_files` where (`filearea` like "backup" and `filename` like "%.mbz%");
Or
select contenthash,filename,filesize,filearea from `mdl_files`;
(latter will, on a large site with lots of file resources, take some time and probably should be used in non-prime time depending)
If you remove the file from /moodledata/filedir/ (and the subdirectory
structure IF it contains a single backup file, **ALSO** remove the record
for it in mdl_files table. It is not recommended to ever mess with files in moodledata/filedir/ as the only humanly recognizable file in that directory (warning.txt) states:
"This directory contains the content of uploaded files and is controlled by Moodle code. Do not manually move, change or rename any of the files and subdirectories here."
There is a plugin that might help:
https://moodle.org/plugins/report_filetrash
shows compat from moodle 2.5 to 2.9
Are you running cron/task jobs often enough?
'spirit of sharing', Ken