A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
Hub for Good
Supporting each other to make an impact
Write for DigitalOcean
You get paid, we donate to tech non-profits.
Contribute to Open Source
How do I get a backup of the database for an instance of Moodle installed on Digital Ocean Droplet?
Add comments here to get more clarity or context around a question. To answer a question, use the “Answer” field below.
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.
Execute the following command from terminal, replace username and database. with yours
“`mysqldump -u username -p moodledb > moodledb.sql
You can type !ref in this text area to quickly search our
full set of tutorials, documentation & marketplace offerings and insert the link!