Where Does Traccar Store Config and Data?
Traccar server keeps its config, H2 database, and logs under /opt/traccar on Linux, with Windows mirroring Program Files.
Last updated
Traccar installs as a self-contained tree: binaries, a conf folder with traccar.xml, a data folder with the default H2 database, and logs beside them. On Linux the root is /opt/traccar; Windows mirrors it under Program Files.
External databases change the calculus. With MySQL or Postgres configured, device history lives there instead, and the data folder only holds caches. Back up both the tree and the database for full coverage.
Where Traccar stores this, by platform
/opt/traccar
conf/traccar.xml plus data (embedded H2) and logs. Stop the service before copying. With external MySQL/Postgres, back up that database too.
C:\Program Files\Traccar
Same conf/data/logs split under the default install folder. Service wrapper logs sit nearby; check them first when the service fails to start.
Frequently asked questions
How do I migrate a Traccar server?
Stop the service, copy the whole install tree (notably data and conf) to the new machine, then start there. The embedded database travels inside the data folder.
Where is the Traccar config file?
Edit traccar.xml in the conf folder and restart the service. Database URLs, ports, and mail settings all live in that one file.
Notice an outdated path? Let us know.