I’m running Traccar in a small setup with three devices using Docker with Docker Compose. Is there a way to automatically clean the database? So far, I’ve only found a manual guide for backing up MySQL: Traccar Clear History. If automatic cleanup isn’t possible — is there a simple, safe way to migrate my database from H2 to MySQL without losing any data or configuration? My config is seen on the attached image.

There are quite a few threads on this forum about migration from H2 to MySQL, so it's possible, but not trivial.
I’m running Traccar in a small setup with three devices using Docker with Docker Compose. Is there a way to automatically clean the database? So far, I’ve only found a manual guide for backing up MySQL: Traccar Clear History. If automatic cleanup isn’t possible — is there a simple, safe way to migrate my database from H2 to MySQL without losing any data or configuration? My config is seen on the attached image.
