Exporting data from Tag Historian

Scripting is the key.

Perhaps you could study and adapt the techniques in this Exchange Resource:

Transfer to another historian would naturally need everything to be retrieved in "As Stored" format.