Closed sivashankerN closed 8 years ago
Database level Backup
Open edX platfom uses two databases
Database level backup This is the way to take backup of edX platform
Take backup of MySql database using following command (LMS)
mysqldump -u root -p --all-databases > ./backup.sql
Take backup of MongoDB database using following command (CMS)
mongodump -o ./mongo-backup
Also documented in https://github.com/vlead/port-labs-to-openedx/blob/develop/src/platform-install-configure/backup.org#taking-backup-of-lms-machine
Restore the databases in the new edx-plaform from the backups taken above. Steps to restore
Restore MongoDB database
mongorestore -drop ./mongo-backup
Restore Mysql database
mysql -u root -p < ./backup.sql
Steps are documented in https://github.com/vlead/port-labs-to-openedx/blob/develop/src/platform-install-configure/backup.org#restoring-the-database
Descibes how to backup Open edX platform databases. If required, take backup of files uploaded by students or uploaded in Studio by super user to access these files by students