add some influx commands

This commit is contained in:
Joerg Lehmann 2022-12-21 18:16:54 +01:00
parent 0520b1eb02
commit c6f98415e3
1 changed files with 17 additions and 0 deletions

View File

@ -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
```