Data Recovery
Automatic Data Recovery
In this mode, data is automatically recovered since the last time data has been collected.
- The collector determines the duration between the current time and the last time data has been written to the Historian data archive, which is stored in the LastSampleWriteTime registry key.
- It compares this duration with the value in the Recovery Time field specified in the collector settings.
- It uses the shorter duration to perform a raw data query on all the tags.
- It then processes the returned samples in chronological order.
For example, if the collector was stopped for 8 hours, but Max Recovery Time was 4 hours, only 4 hours of data would be recovered.
As per the recovery logic, an end-of-collection marker is placed at the point in time where the collector was stopped. This end-of-collection marker may or may not be there after the recovery is complete. As part of the recovery logic, if recovery data point time matches the timestamp of the end-of-collection marker, it is overwritten with the recovered good data.
Manual Data Recovery
In this mode, you can fill gaps in the data, but you cannot fill old data.
- Access Historian Administrator.
- Select Collectors, and then select the ODBC collector instance for which you want to manually recover data.
- Select Recalculate.
The Recalculate window appears.
- Enter start time, end time, and other required information. We recommend that you choose small time intervals to reduce the load on the server and the collector.
- Select Recalculate.
At the time of recovery, if the connection to server is lost, and if the reconnect mechanism is enabled, the collector will try to connect to the server and fetch the data once connection re-establishes.