Skip to content

Commit 51f5cd5

Browse files
authored
Add missing influxdb_migrator (home-assistant#4555)
* Add missing influxdb_migrator * remove redirect
1 parent 5b6c51c commit 51f5cd5

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
layout: page
3+
title: "influxdb_migrator"
4+
description: "Script to convert an old-structure Influx database to a new one."
5+
release_date: 2017-02-23 11:00:00
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
---
11+
12+
Script to convert an old-structure Influx database to a new one.
13+
14+
Example to run the script:
15+
16+
```bash
17+
$ hass --script influxdb_migrator -H IP_INFLUXDB_HOST \
18+
-u INFLUXDB_USERNAME -p INFLUXDB_PASSWORD \
19+
--dbname INFLUXDB_DB_NAME
20+
```
21+
Script arguments:
22+
23+
```
24+
optional arguments:
25+
-h, --help show this help message and exit
26+
-d dbname, --dbname dbname
27+
InfluxDB database name
28+
-H host, --host host InfluxDB host address
29+
-P port, --port port InfluxDB host port
30+
-u username, --username username
31+
InfluxDB username
32+
-p password, --password password
33+
InfluxDB password
34+
-s step, --step step How many points to migrate at the same time
35+
-o override_measurement, --override-measurement override_measurement
36+
Store all your points in the same measurement
37+
-D, --delete Delete old database
38+
```
39+

source/_includes/asides/docs_navigation.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ <h1 class="title delta">Topics</h1>
9393
<li>{% active_link /docs/tools/db_migrator/ db_migrator %}</li>
9494
<li>{% active_link /docs/tools/ensure_config/ ensure_config %}</li>
9595
<li>{% active_link /docs/tools/influxdb_import/ influxdb_import %}</li>
96+
<li>{% active_link /docs/tools/influxdb_migrator/ influxdb_migrator %}</li>
9697
<li>{% active_link /docs/tools/keyring/ keyring %}</li>
9798
</ul>
9899
</li>

0 commit comments

Comments
 (0)