File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ <h1 class="title delta">Topics</h1>
93
93
< li > {% active_link /docs/tools/db_migrator/ db_migrator %}</ li >
94
94
< li > {% active_link /docs/tools/ensure_config/ ensure_config %}</ li >
95
95
< li > {% active_link /docs/tools/influxdb_import/ influxdb_import %}</ li >
96
+ < li > {% active_link /docs/tools/influxdb_migrator/ influxdb_migrator %}</ li >
96
97
< li > {% active_link /docs/tools/keyring/ keyring %}</ li >
97
98
</ ul >
98
99
</ li >
You can’t perform that action at this time.
0 commit comments