Greetings Moodlers!
Just wondering if anyone has got this in stock....
I need a script to copy a course and its contents in to a new course. No userdata is needed.
I need it because we have been using the restore functionality (silent), but it tends to time out with some of our courses.
And i ask the question here, because i do not have the complete picture of which tables to copy from.
Btw:
The userscenario is that a user has access to create a copy of an unenrollable "mastercourse". This is currently done with an Ajax call that invokes the silent restore. Then the user is enrolled into the course as teacher, some coursesettings are updated and the course appears in the users courselist. Pretty smooth so far....
Sadly, the restore procedure times out (in some occations).
Hoping for the magic solution from you guys
Best regards
Morten Pless