Bulk Upload of Courses - Cannot read the backup file

Bulk Upload of Courses - Cannot read the backup file

by Susan Fleming -
Number of replies: 3

We are at Moodle 3.5 and would like to bulk upload courses from a network backup drive rather than from the Moodle Server Backup folder, but are getting "Cannot read the backup file":

upload course preview

On the local computer, the network drive is mapped to B:\

The actual path used for mapping the drive is \\IT\moodle_backup

We have tried:

\\IT/moodle_backup/ACCT/backup-moodle2-acct261_bl_2016fa-course-2134-20170116-1630.mbz

\\IT\moodle_backup/ACCT/backup-moodle2-acct261_bl_2016fa-course-2134-20170116-1630.mbz

B:\ACCT/backup-moodle2-acct261_bl_2016fa-course-2134-20170116-1630.mbz

We have also tried uploading directly from the Desktop with the same results.


Any help, suggestions, etc. would be greatly appreciated.

Thank you

Susan


Average of ratings: -
In reply to Susan Fleming

Re: Bulk Upload of Courses - Cannot read the backup file

by Ryan Hazen -

1. Make sure the file extension is .mbz - this is the only type of backup file accepted by moodle. Sometimes people have .zip files or some other format. If it was originally a .mbz you can just rename the .zip file extension to .mbz and it will work.

2. As a workaround, you can restore the file into a template course, then choose to restore from the template course when bulk uploading. Just input the shortname of the course here:



Hope that helps!

Ryan

In reply to Ryan Hazen

Re: Bulk Upload of Courses - Cannot read the backup file

by C Behan -

I think what's happening here is that Susan is attempting to restore courses in the Course Upload area.


To restore courses i.e. those files you have, go to [yourmoodlesite]/backup/restorefile.php?contextid=1 (Moodle Docs)


To create new courses from a CSV file, go to [yourmoodlesite] /admin/tool/uploadcourse/index.php (Moodle Docs)

In reply to C Behan

Re: Bulk Upload of Courses - Cannot read the backup file

by Susan Fleming -

Yes, we currently upload/restore each course on an individual basis using a backup file from the previous offering of the course.  We would like to set up a spreadsheet that will allow us to bulk upload courses if possible.