Moodle Database Backup download

Posted January 15, 2015 2.6k views

How do I get a backup of the database for an instance of Moodle installed on Digital Ocean Droplet?

1 comment
  • Thanks Sianios. I had someone else set this up and do not have the database name or password. If you have ideas of how I can retrieve them, I would appreciate hearing about them.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Execute the following command from terminal, replace username and database. with yours
“`mysqldump -u username -p moodledb > moodledb.sql