Database Transfer

Database Transfer

yazan Dina Volodarskaya -
Yanıt sayısı: 3

Hi, I am very new to Moodle, so please forgive me if I am repeating older posts or asking something very obvious.

We are trying to port data in some automated way from a different course management system to Moodle (PostgreSQL).  Database schemas are obviously different.  Existing data is available per each course in XML format only.  The idea we have is to match up our XML trees to Moodle's and upload them back to Moodle.  Hence, my questions are (1) is it possible to obtain an XML archive of a course in Moodle?, and (2) is it possible to upload those XML files back to Moodle?  

Unfortunately, I don't have much database experience, so it would be very helpful to hear suggestions on how to do this sort of transfer.


Thanks,
Dina.


Dina Volodarskaya yanıt olarak

Re: Database Transfer

yazan Eloy Lafuente (stronk7) -
Core developers 'ın resmi Documentation writers 'ın resmi Moodle HQ 'ın resmi Peer reviewers 'ın resmi Plugin developers 'ın resmi Testers 'ın resmi
Hi Dina,

You can make a backup of one course in Moodle. It generates a .zip file containing, all the necessary stuff to be restored again. The structure of that backup includes every file in the course (images, html, attachments...) and one file named moodle.xml. That's your file!!

Although I think that the format is a bit complicated, is possible to generate "compatible" files in order to "restore them" in Moodle. Not easy, but possible...

Ciao gülüyor

Eloy Lafuente (stronk7) yanıt olarak

Re: Database Transfer

yazan Ger Tielemans -
Do you have a description of this moodle.xml structure, Eloy?
Ger Tielemans yanıt olarak

Re: Database Transfer

yazan Eloy Lafuente (stronk7) -
Core developers 'ın resmi Documentation writers 'ın resmi Moodle HQ 'ın resmi Peer reviewers 'ın resmi Plugin developers 'ın resmi Testers 'ın resmi
No üzgün

but it's basically a representation of each table in Moodle nested as every "graphic" drawn in each module "backuplib.php". Central tables (users, courses, section...) are easy, I think...

Anyway, if somebody want to start writing it, I'll help for each question in (not inmediatly, but 1-2 days, sure), but I'm very busy now and next months are going to be very stressful for me at work... without mention your 1st question (in a pool of 5) recently written in another discussion. gözkırpıyor

Ciao gülüyor