O'Reilly logo

Moodle Security by Darko Miletić

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Site backup

We already mentioned three crucial elements that must be backed up in order to have a safeguard against site crashes.

Database

Database backup consists of exporting database structure (tables) and data. Export can be in some proprietary format or as a standard SQL script. Since our focus was on MySQL database we will explain the process for that Relational Database Management System (RDBMS). If you happen to use another RDBMS consult the vendor documentation for the appropriate export procedure.

MySQL comes with variety of command-line tools mostly for administrative purposes. The tool for exporting database is called mysqldump. This is a recommended template command line for exporting a single database from MySQL assuming that the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required