Hi
So do you want to keep the 20-30 days of data that is currently in the db?
If yes then prior to running the mysqldump you could delete all entries from the events table that are older than 20-30 days. You will still need to run through the mysqldump procedure to free the space.
After doing this you will need to tell the ArchMgr to only save 20-30 days worth of data. This is the MAX_EVENTS_RECORD field in the .configrc file and will need a restart of ArchMgr to take effect.
You will also need to implement the regular run of db_optimize.pl script to continuously free the disk space.
If you don't want to save the current data then it is possible to drop the events table and readd as an empty table but I have never done that. You will need to look up how to do that.
Note that no matter what you do you will need to implement the regular running of the db_optimize.pl script.
Regards, John