Database backup and purge based on size

Hey everyone, there’s a slew of features that I think would be valuable to the recorder component. I think the simplest one would be to have the database purge itself based on size AND/OR date. Kind of how logger’s handle log files.

Another addition would be able to backup the entries that will be purged. The advantage here would be we can keep local queries fast and light but still able to keep our recorded data either locally or in the cloud or both. I could implement the this feature as a cron job, but since it’s not native no one else would be able to use it.

What do you guys think of this potential?