Record default setting is permanent ?

xplane25 10 years ago

Hello,

Let me explain. From what i know, the server receive data and record that on a database, ok.

Question : Is it permanent recording ? Or after like "x" years the "old" data is erased ?

Ps: sorry if my question seems stupid

Anton Tananaev 10 years ago

You can configure server to remove old data, but it's not enabled by default.

xplane25 10 years ago

Thx, can you tell me where i can mod that in the server menu ? Or maybe i need to modify a file ?

Anton Tananaev 10 years ago

In the config file.

xplane25 10 years ago

The file where you setup sql ? Can you specify the file in the right directory please ?

Anton Tananaev 10 years ago

Please read the official documentation before asking questions:

https://www.traccar.org/configuration-file/

xplane25 9 years ago

Thx Anton,

The link tell : If you use Windows system, "the" file is traccar.xml, ok.

My file is something like that :

<entry key='database.driver'>com.mysql.jdbc.Driver</entry> 
<entry key='database.url'>jdbc:mysql://[HOST]:3306/[DATABASE]?allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=''</entry>
<entry key='database.user'>[USER]</entry> 
<entry key='database.password'>[PASSWORD]</entry>

I have check all keys on your link but i don't see anythinh that i want...

Let say i want to keep record during 6 months, what i have to add to this file ?

Thx in adv

xplane25 9 years ago

Omg my bad... This :

<entry key='database.positionsHistoryDays'>NUMBER OF DAYS HERE</entry>

Right ?

Anton Tananaev 9 years ago

Yes, that's the one.