Update Traccar
- Create an LXC backup!
- Download a copy of
opt/traccar/config/traccar.xml
and theopt/traccar/media
folder, if present - Stop the Traccar service:
systemctl stop traccar
- Remove everything Traccar, the folder, the .traccar, all of it like you are starting over - this will leave the database intact
- Execute
wget
with the updated install zip from the website (right click the download link to copy it) - Unzip the things:
unzip filename.zip
- Execute
./traccar.run
- Upload the downloaded traccar.xml file to the
opt/traccar/config
folder - Upload or replace the Media folder in the Traccar directory
- Start the Traccar Service:
systemctl start traccar
- 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:
- Make a database backup
- Backup the traccar.xml config file (if changed)
- Backup the media folder (if present)
- Remove the old version of Traccar
- Install the new version of Traccar
- Restore the media folder (if present)
- Restore the traccar.xml config file (if changed)
- Do not copy default.xml from old versions
- 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.