How to migrate a course with about 1.5 GB of resources

How to migrate a course with about 1.5 GB of resources

Tom Olson -
回帖数:5
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 Olson

Re: How to migrate a course with about 1.5 GB of resources

Ruben Fonseca -
Tom,
Do you have FTP access? You could FTP the backup of the course to the new server moodledata directory for one of the other courses, then go to that course and initiate a Restore. Might be worth a try.

--Ruben
回复Tom Olson

Re: How to migrate a course with about 1.5 GB of resources

John White -
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
回复John White

Re: How to migrate a course with about 1.5 GB of resources

Tom B -
Thanks I managed to "Restore" a course to a different Moodle site using your instructions.

Tom
回复John White

Re: How to migrate a course with about 1.5 GB of resources

Alan Pollock -
Hi John

I tried your suggestion of putting a resource into the course I'd created, plus backing it up and searched for the number. It took a long time to find it - you need to go into the uploaddata directory.

Hope this helps others!

Cheers

Alan
回复Alan Pollock

Re: How to migrate a course with about 1.5 GB of resources

Mary Cooch -
Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Testers的头像 Translators的头像
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?)