Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upload courses to Moodle via FTP

Tags:

backup

ftp

moodle

I have a very large Moodle .mbz backup file of a single course - Slightly over 1GB. I need to upload this backup to the server, but of course the file manager Moodle provides won't allow me to do this as the file is too big.

So I was wondering if it would be possible to upload the backup via FTP to some folder in moodledata to then use the backup manager to restore the course, if so, where should I upload it/where are the backups stored?

like image 284
James Paterson Avatar asked Sep 14 '16 15:09

James Paterson


People also ask

How do I upload files to a Moodle server?

Uploading files In many places in Moodle, users will see a notice saying they can drag and drop files to upload them. They can also add files from what Moodle calls Repositories which allow them to upload from their computer, import from Google Drive (for example), Wikipedia and other external sites.

How do I upload multiple files to Moodle?

Note: To upload multiple files at once, hold down the CTRL key on your keyboard (Windows), or the COMMAND key (MAC) as you select each of the files you wish to upload. Then drag the files into the Files area in Moodle.

What types of files can be uploaded to Moodle?

File types you can add to Moodle include PDF, Word and other text documents, PowerPoint presentations, spreadsheets, zip files, and media such as image, video, and audio files.

Can a student upload files to Moodle?

Most types of files can be uploaded and accessed through Moodle but the student needs to have the correct software to be able to open them.


2 Answers

Ok, figured it out. The way to do it by using repositories. You need to create a folder in moodledata with the name "repository", then create a folder inside that with whatever name you want. Upload your backup into this folder.

Then, enable the File System Repositories plugin in Settings > Site administration > Plugins > Repositories > Manage Repositories. Change the drop down for "File Repository" to "Enabled and visible, then click the settings button next to the dropdown.

Then, use the UI to create a new repository instance, selecting the folder you created earlier. Then save, and that repository should show up in the file picker menu.

like image 56
James Paterson Avatar answered Oct 01 '22 20:10

James Paterson


Just had a go at this, looks like a few things have changed since this was written, but is mostly correct.

Starting from the Dashboard, go through the 'Site Administration > Plugins > Repositories > Manage Repositories' path as in James' answer, but 'File Repository' is now 'File System'.

Once the dropdown is set to Enabled and Visible, you can go into settings and click 'Create a repository instance'. From here you should be able to work out what to do provided the folder is in the right location.

like image 38
Alex Ryan Avatar answered Oct 01 '22 20:10

Alex Ryan