ansemjo / speedtest-plotter

running scheduled speedtests inside docker and plotting the results with gnuplot
MIT License
60 stars 12 forks source link

Where is the data stored? ( I don't want to lose the history, I am new to docker ) #95

Closed ErikThiart closed 2 years ago

ansemjo commented 2 years ago

The default DATABASE environment variable puts the SQLite database in /data/speedtests.db: https://github.com/ansemjo/speedtest-plotter/blob/7d7cb31aec97cb1afde1add7107a53fc642e3742/container/Dockerfile#L45

So unless you changed that variable, you can copy the database from the container:

docker cp speedtest:/data/speedtests.db ./speedtests.db

Alternatively, use the dump subcommand to export all measurements in CSV format:

docker exec speedtest dump > measurements.csv