Where is the historical data stored in a local server?

Yes.
In this case you have a PostgreSQL database enabled, which is where the data is stored.

This topic, and the links within it, are a good source of info about how to connect to the DB and extract data from it…

Pete.