How to find the size of moodledata and the database on your Moodle site on a Linux server.
Knowing the size of your Moodle database and files (moodledata) is important if you want to assess the capacity of your current hosting or move your Moodle site elsewhere e.g. to another provider.
This information is relevant for most Linux distributions.
Moodledata – Ubuntu / CentOs
Locate your moodledata and execute the following command
du -sh /var/www/moodledata
Moodle MySQL / MariaDB database – Ubuntu/ CentOs
Using the same command you can evaluate the MySQL / MariaDB database size on your server.
du -sh /var/lib/mysql