Difference between revisions of "Moodle: Backup Site"

From OnnoWiki
Jump to navigation Jump to search
Line 15: Line 15:
 
* Buat site moodle seperti biasa
 
* Buat site moodle seperti biasa
 
* Setup database
 
* Setup database
* Restore
+
* Restore, misalnya,
  
 
  mysql -p new_database < moodlesqlfile.sql
 
  mysql -p new_database < moodlesqlfile.sql
 
  
 
==Download Data dari Cyberlearning.web.id==
 
==Download Data dari Cyberlearning.web.id==

Revision as of 04:29, 15 September 2015

Sumber: https://docs.moodle.org/23/en/Site_backup


Script

mv moodle-database.sql.gz moodle-database-old.sql.gz
mysqldump -h namamesin -u usernamemoodle --password=passwordmoodle -C -Q -e --create-options databasemoodle > moodle-database.sql
gzip moodle-database.sql
tar czf /var/www/pustaka/backupmoodle/moodlecms.tar.gz /var/www/moodle


Restore

  • Buat site moodle seperti biasa
  • Setup database
  • Restore, misalnya,
mysql -p new_database < moodlesqlfile.sql

Download Data dari Cyberlearning.web.id

Contoh script untuk men-download dari cyberlearning.web.id

wget http://182.48.189.103/pustaka/backupmoodle/moodle-database.sql.gz -O /var/data/library/backupmoodle/moodle-database.sql.gz
wget http://182.48.189.103/pustaka/backupmoodle/moodlecms.tar.gz -O /var/data/library/backupmoodle/moodlecms.tar.gz



Referensi