You can send a string command like
cmd=ExportArchive
startDT=2022-12-23 10:00:00
endDT=2022-12-23 11:00:00
to export historical data.
When DB Export module receives such command, it executes the historical data queries that exist in the module configuration.