I have an old WordPress site that I no longer maintain but keep online anyway. I have a cron job setup on the server that backs up the WordPress database once a month. I am noticing a continuing growth in the size of the database backup. For example, if I go back a few years, the database size was under 3MB. It has kept gradually increasing over time – as of December last year it was 80MB and as of January this year it is now 116MB.
I am curious to know whether this is a standard WordPress problem/known plug-in problem and how one might go about identifying and addressing it. I’m not adding any new content of any sort and it’s a low traffic site, so I don’t suspect it’s being overwhelmed with comments. Even the sum of all spam and legitimate comments is under 9100 (about 9000 are spam), and each comment would have to be consuming on the order of ~12KB in the database to explain the backup size, which seems rather large per comment.
Some plugins aggregate data over time without ever cleaning up. I remember Broken Link Checker did that back in the days when I was using it â¦
The first step: Find all tables, count their size (data, indexes and total size).
Sample query,
DB_NAME
is the constant from yourwp-config.php
:Then watch how they grow, identify the plugin writing into these tables.
I am using a very simple plugin for that ⦠published right now: T5 Table size dashboard widget. As the name says, it shows tables stats in a dashboard widget.
I would recommend to disable all plugins you donât need. And if you donât want to add more content this thread might be worth a look: Create a Static HTML Site from WordPress