Skip to main content

Update Traccar

  1. Create an LXC backup!
  2. Download a copy of opt/traccar/config/traccar.xml and the opt/traccar/media folder, if present
  3. Stop the Traccar service: systemctl stop traccar
  4. Remove everything Traccar, the folder, the .traccar, all of it like you are starting over - this will leave the database intact
  5. Execute wget with the updated install zip from the website (right click the download link to copy it)
  6. Unzip the things: unzip filename.zip
  7. Execute ./traccar.run
  8. Upload the downloaded traccar.xml file to the opt/traccar/config folder
  9. Upload or replace the Media folder in the Traccar directory
  10. Start the Traccar Service: systemctl start traccar
  11. Profit
Updating instructions from Traccar.org:

If you are using version 3.3 or later, you can upgrade directly to the latest version of Traccar. If you're using an older version, please check details at the bottom of this page first.

Upgrade process:

  1. Make a database backup
  2. Backup the traccar.xml config file (if changed)
  3. Backup the media folder (if present)
  4. Remove the old version of Traccar
  5. Install the new version of Traccar
  6. Restore the media folder (if present)
  7. Restore the traccar.xml config file (if changed)
  8. Do not copy default.xml from old versions
  9. Start the service

If you are using versions 3.0 to 3.2, you have to upgrade to the version 3.3 first before upgrading to the latest release.

If you are using version 2.x, you would have to manually migrate the database schema. See update from 2.x to 3.0 for more details.

Above instructions are made with assumption that only the main configuration file is modified. If any other files (e.g. templates) are changed, you need to re-apply those changes on top of the new version. Note that old templates are not guaranteed to work with a new version.