mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 14:26:51 +00:00
Add missing influxdb_migrator (#4555)
* Add missing influxdb_migrator * remove redirect
This commit is contained in:
parent
5b6c51c154
commit
51f5cd59e9
39
source/_docs/tools/influxdb_migrator.markdown
Normal file
39
source/_docs/tools/influxdb_migrator.markdown
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
---
|
||||||
|
layout: page
|
||||||
|
title: "influxdb_migrator"
|
||||||
|
description: "Script to convert an old-structure Influx database to a new one."
|
||||||
|
release_date: 2017-02-23 11:00:00
|
||||||
|
sidebar: true
|
||||||
|
comments: false
|
||||||
|
sharing: true
|
||||||
|
footer: true
|
||||||
|
---
|
||||||
|
|
||||||
|
Script to convert an old-structure Influx database to a new one.
|
||||||
|
|
||||||
|
Example to run the script:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ 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
|
||||||
|
```
|
||||||
|
|
@ -93,6 +93,7 @@
|
|||||||
<li>{% active_link /docs/tools/db_migrator/ db_migrator %}</li>
|
<li>{% active_link /docs/tools/db_migrator/ db_migrator %}</li>
|
||||||
<li>{% active_link /docs/tools/ensure_config/ ensure_config %}</li>
|
<li>{% active_link /docs/tools/ensure_config/ ensure_config %}</li>
|
||||||
<li>{% active_link /docs/tools/influxdb_import/ influxdb_import %}</li>
|
<li>{% active_link /docs/tools/influxdb_import/ influxdb_import %}</li>
|
||||||
|
<li>{% active_link /docs/tools/influxdb_migrator/ influxdb_migrator %}</li>
|
||||||
<li>{% active_link /docs/tools/keyring/ keyring %}</li>
|
<li>{% active_link /docs/tools/keyring/ keyring %}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user