I have a Moodle course with about 1.5 GB of QuickTime movies, audio files and documents. We recently moved from our internal Moodle server to an externally hosted Moodle server v1.9 with a 500 MB file limit.
They suggest migrating the resources separate from the course. Is this possible? If I don't move resources as part of a course, won't the links to all these resources be broken? And how would I reassemble it once the course and resources are all at the new Moodle site. I really don't want to recreate the course from scratch at the new site.
Thanks,
Tom
Tom,
With some care this should be possible.
You can use your ftp client to do the upload. Even if there is a server file limit of 500MB outside of the limit in Moodle, its unlikely that any one file is going to breach it (unless your videos are really tedious
).
But to use ftp you need to know where to put the files.
So first use ftp to view the course data structure in /data/ or /moodle_data/ (or similar) - each course has a numbered directory (so long as at least one resource or backup has been created).
Create a new course with the same Full name and Short name as you used on the local instance. Add one picture resource (anything) and see the new numbered folder appear in ftp.
Now you know where to push the files to!
Use ftp to upload all the resource files from the donor course into this folder (likely zip the lot up and unzip on arrival (or if this would breach the 500MB limit, just drag and drop the lot and make tea!)
Now the trick. In the donor course back up everything EXCEPT the Users, user files, COURSE FILES, and role assignments.
Copy the resulting backup zip into a backupdata folder created inside the receptor course.
Re-enter that new course and Restore all the data from this backup (overwriting the non-existent course data).
I have also just done a test that suggest this will work even if done in the opposite order, with the restore from backup proceeding before the course resources have arrived by ftp!
Hope this helps,
Regards,
John
Sorry Ruben, just realised we had been typing at the same time
With some care this should be possible.
You can use your ftp client to do the upload. Even if there is a server file limit of 500MB outside of the limit in Moodle, its unlikely that any one file is going to breach it (unless your videos are really tedious
But to use ftp you need to know where to put the files.
So first use ftp to view the course data structure in /data/ or /moodle_data/ (or similar) - each course has a numbered directory (so long as at least one resource or backup has been created).
Create a new course with the same Full name and Short name as you used on the local instance. Add one picture resource (anything) and see the new numbered folder appear in ftp.
Now you know where to push the files to!
Use ftp to upload all the resource files from the donor course into this folder (likely zip the lot up and unzip on arrival (or if this would breach the 500MB limit, just drag and drop the lot and make tea!)
Now the trick. In the donor course back up everything EXCEPT the Users, user files, COURSE FILES, and role assignments.
Copy the resulting backup zip into a backupdata folder created inside the receptor course.
Re-enter that new course and Restore all the data from this backup (overwriting the non-existent course data).
I have also just done a test that suggest this will work even if done in the opposite order, with the restore from backup proceeding before the course resources have arrived by ftp!
Hope this helps,
Regards,
John
Sorry Ruben, just realised we had been typing at the same time
Hi Alan. Glad John's help was helpful - he is (helpful!) For others: depending on how your Moodle is set up and by whom, the folder you need might be called data - or moodledata or, indeed, as you say, uploaddata. I've got several Moodle installs and have each of these names.( I wonder if there are any others?)