Export script for TempoDB