Influxdb one-liners
Jump to navigation
Jump to search
V1
influxd-v1 backup -portable -host 10.x.x.x:8088 -db loadtesting bkp-influxdb-10.x.x.x-loadtesting influxd restore -portable -db loadtesting .influxdb-data/
V2
docker exec -it
# docker run -d --name=influxdb-a1 -p 8086:8086 -p 8088:8088 -v C://sandbox/influxdb/influxdb-data:/root/.influxdb-data influxdb:1.8 exit 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.4