how to backup and restore moodle from 1.9.12 to 2.2.1

backup and restore course
backup and restore course

28 เม.ย.55 เนื่องจากผมใช้ระบบอีเลินนิ่ง 2 รุ่นบนเครื่องบริการ 2 เครื่อง โดยเครื่องหนึ่งเป็น moodle 1.9.12 และอีกเครื่องเป็น 2.2.1 หากมี course ที่ต้องการให้ทั้ง 2 เครื่องใช้ได้ทั้งคู่ผ่านวิธี backup & restore ที่แยกบริการกันอิสระ ซึ่งไม่ใช้ user ร่วมกัน .. แต่ปัญหาที่พบคือ แฟ้มที่ backup ได้จาก 2.2.1 เป็น MBZ เมื่อนำไป restore ใน 1.9.12 ก็พบว่าไม่รู้จัก จึงสรุปในเบื้องต้นว่า ผมไม่สามารถย้าย course จากรุ่น 2.2.1 ลงไปรุ่น 1.9.12

จึงทดสอบใหม่ ด้วยการย้ายบางวิชาจาก 1.9.12 ไป 2.2.1 ซึ่งแฟ้มของ 1.9.12 เป็น .zip ผลคือ 2.2.1 รู้จักแฟ้ม backup รุ่นเก่า และใช้งานได้ โดยขั้นตอนการทดสอบเขียนไว้ใน paragraph ถัดไป และแบ่งไว้ 2 section คือ section แรกเป็นการ backup ส่วน section ที่สองเป็นการ restore ทำให้ต่อไปผมต้องเตรียมการสอนใน moodle 1.9.12 แล้วคัดลอกไปวางใน 2.2.1 เมื่อมีการเปลี่ยนแปลงเนื้อหา

First section
objective : to backup your course in moodle 1.9.12 to your computer
1. login by teacher account
2. click on the selected course
3. click backup, next ..
4. until got file, save as backup file to your computer
5. sample file : backup-tech-20120428-0931.zip

Second section
Objective : to restore your backup file to moodle 2.2.1
1. login by admin account
2. Settings, Front page settings, Restore
3. Choose a file (from your computer in first section)
4. select category, continue ..
5. select : Delete the contents of this course and then restore
6. select :
– include activities
– include blocks
7. Settings to keep old students
– Keep current roles and enrolments = yes
– Keep current groups and groupings = yes
8. found message after the complete
“The course was restored successfully, clicking the continue button below will take you to view the course you restored.”

http://docs.moodle.org/19/en/Course_restore
http://docs.moodle.org/22/en/Course_restore

Author: บุรินทร์ รุจจนพันธุ์

I am Lecturer, Developer, Researcher, Columnist, Writer, Photographer, and Webmaster - L@mpang man

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.