Clean up H2 Database

Björn F. 2 days ago

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.
Screenshot 2026-01-06 at 23.13.27.png

Anton Tananaev 2 days ago

There are quite a few threads on this forum about migration from H2 to MySQL, so it's possible, but not trivial.