how to migrate local kdb to aws kx

I am migrating historical database from on-premise KX to aws KX.  RDB is still running on premise; just historical data will be on AWS. I need two types of script:

  • script for migrating historical data 

  • script for daily roll over

cna anybody help this?