osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now
[MOD] Archive & Delete Old Tickets
Getting sick of the volume of old tickets clogging up your DB? Want to keep the text of the messages for posterity but don't want to individually print each one to PDF?
Save to root ostickets directory, run from command-line. (Like, via cron), When you are happy that it is backing them up properly, simply uncomment the $t->delete(); line, to begin pruning the db.
Required: You must set your staff ID or Username into the Staff constructor near the top, and specify the Backup location define..
define('DELETEMONTHS', 6); //change to the number of months you want to delete.
TODO: Get attachments inline or something?