Pruneterrain.php

Description
Currently, the terrain revision table in the mysql database gets too big after a while(more than 1gb is no exception), so backups slow down greatly. This script prunes the revisions per region, thus limiting the maximum space which this table occupies.

Usage
Save the script in your scripts directory, make it executable(chmod +x) and fire up like: ./pruneterrain.php sqlhostname sqluser sqlpw sqldb prunelimit The prunelimit cuts off every revision after the amount you give(1-x).