home-assistant.io/source/_docs/tools/influxdb_migrator.markdown
Fabian Affolter 51f5cd59e9
Add missing influxdb_migrator (#4555)
* Add missing influxdb_migrator

* remove redirect
2018-01-31 10:25:22 +01:00

1.1 KiB

layout, title, description, release_date, sidebar, comments, sharing, footer
layout title description release_date sidebar comments sharing footer
page influxdb_migrator Script to convert an old-structure Influx database to a new one. 2017-02-23 11:00:00 true false true true

Script to convert an old-structure Influx database to a new one.

Example to run the script:

$ hass --script influxdb_migrator -H IP_INFLUXDB_HOST \
    -u INFLUXDB_USERNAME -p INFLUXDB_PASSWORD \
    --dbname INFLUXDB_DB_NAME

Script arguments:

optional arguments:
  -h, --help            show this help message and exit
  -d dbname, --dbname dbname
                        InfluxDB database name
  -H host, --host host  InfluxDB host address
  -P port, --port port  InfluxDB host port
  -u username, --username username
                        InfluxDB username
  -p password, --password password
                        InfluxDB password
  -s step, --step step  How many points to migrate at the same time
  -o override_measurement, --override-measurement override_measurement
                        Store all your points in the same measurement
  -D, --delete          Delete old database