Difference between revisions of "Influxdb v2"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
``` | ``` | ||
annotations: | annotations: | ||
− | nginx.ingress.kubernetes.io/proxy-body-size: " | + | nginx.ingress.kubernetes.io/proxy-body-size: "1g/100m" |
+ | ``` | ||
+ | |||
+ | # More Notes | ||
+ | |||
+ | ``` | ||
+ | # Syntax | ||
+ | influx backup <backup-path> -t <root-token> | ||
+ | |||
+ | # Example | ||
+ | influx backup \ | ||
+ | path/to/backup_$(date '+%Y-%m-%d_%H-%M') \ | ||
+ | -t xXXXX0xXX0xxX0xx_x0XxXxXXXxxXX0XXX0XXxXxX0XxxxXX0Xx0xx== | ||
+ | ``` | ||
+ | - https://docs.influxdata.com/influxdb/v2.4/backup-restore/restore/#restore-all-time-series-data | ||
+ | |||
+ | |||
+ | ``` | ||
+ | docker run -p 8086:8086 \ | ||
+ | -v $PWD/influxdb:/var/lib/influxdb \ | ||
+ | -v $PWD/influxdb.conf:/etc/influxdb/influxdb.conf:ro \ | ||
+ | -v $PWD/influxdb2:/var/lib/influxdb2 \ | ||
+ | -e DOCKER_INFLUXDB_INIT_MODE=upgrade \ | ||
+ | -e DOCKER_INFLUXDB_INIT_USERNAME=myuser \ | ||
+ | -e DOCKER_INFLUXDB_INIT_PASSWORD=mypassword123 \ | ||
+ | -e DOCKER_INFLUXDB_INIT_ORG=myorg \ | ||
+ | -e DOCKER_INFLUXDB_INIT_BUCKET=mybucket \ | ||
+ | influxdb:2.2 | ||
``` | ``` |
Latest revision as of 06:41, 10 September 2022
https://docs.influxdata.com/influxdb/v2.2/tools/grafana/
backup restore
influx backup --org archive --bucket loadtesting/autogen --host https://infuxdb.src.io:8086/ --token <MYADMINTOKEN> backups/archive-loadtesting
influx restore --org archive --bucket loadtesting/autogen --host https://influxdb.dst.io:8086/ --token <MYADMINTOKEN> backups/archive-loadtesting
NGINX Size
annotations: nginx.ingress.kubernetes.io/proxy-body-size: "1g/100m"
More Notes
# Syntax influx backup <backup-path> -t <root-token> # Example influx backup \ path/to/backup_$(date '+%Y-%m-%d_%H-%M') \ -t xXXXX0xXX0xxX0xx_x0XxXxXXXxxXX0XXX0XXxXxX0XxxxXX0Xx0xx==
docker run -p 8086:8086 \ -v $PWD/influxdb:/var/lib/influxdb \ -v $PWD/influxdb.conf:/etc/influxdb/influxdb.conf:ro \ -v $PWD/influxdb2:/var/lib/influxdb2 \ -e DOCKER_INFLUXDB_INIT_MODE=upgrade \ -e DOCKER_INFLUXDB_INIT_USERNAME=myuser \ -e DOCKER_INFLUXDB_INIT_PASSWORD=mypassword123 \ -e DOCKER_INFLUXDB_INIT_ORG=myorg \ -e DOCKER_INFLUXDB_INIT_BUCKET=mybucket \ influxdb:2.2