A script to migrator old time series to new time series or to transfer data between old and new time series.
- You set a set of source database
- You set a set of target database
- You sepecify a query
It will go over all sources, run query, fetch the result, import into the target
The time
will be retain. however the sequence_number is not, by
default. If you want to retain sequence_number
, specify,
:force_sequence_number
npm install -g influxdb_importer
miata -c config.json -q "SELECT * FROM timeseries where time > now() -
30d"