I'm running a personal Wordpress site on my NAS using MySQL plugin to store the database. The plugin is good since it allows you to auto-backup the database into a defined shared folder whenever you want creating a cron-job.
My question is if it would be very difficult to implement a feature which would let the user to delete old SQL dumps from the shared folder. Like in the RSnapshot plugin where you can select how many daily, weekly, monthly... backups do you want to keep.
If it can not be implemented in the plugin, is there any way to do a cron-job or something to delete SQL dumps older than X days?