add some influx commands
This commit is contained in:
@@ -45,3 +45,20 @@ show range of last values:
|
||||
Autor: Joerg Lehmann, nbit Informatik GmbH
|
||||
|
||||
|
||||
### Influxdb Commands
|
||||
|
||||
```
|
||||
Show tokens
|
||||
# influx auth ls
|
||||
|
||||
Clone Admin Token in Webgui if not known anymore and use this to get all tokens:
|
||||
|
||||
Update Token in Default Config:
|
||||
# influx config update --config-name default --token XXXXXXXXXXX
|
||||
|
||||
Backup Influxdb:
|
||||
# influx backup /root/joergs-backup -t XXXXXadmintokenXXXXX
|
||||
|
||||
Restore Influxdb:
|
||||
# influx restore /var/lib/influxdb2/joergs-backup/ --full
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user