InfluxDB
Since: 2.7.0
GoBackup uses influx (opens in a new tab) cli tool export data stored in InfluxDB (opens in a new tab).
In current, we only support InfluxDB v2.
Install tool
You must install influx cli first.
https://docs.influxdata.com/influxdb/v2/reference/cli/influx/ (opens in a new tab)
Config keys
type: influxdb2
type,tokenandhostproperties are required
typemust beinfluxdb2host(string) - HTTP address of InfluxDBtoken(string) - InfluxDB v2 API token all other properties ofinfluxdb2database are optional:bucket(string) - name of the bucket to back up frombucket_id(string) - ID of the bucket to back up fromorg(string) - organization nameorg_id(string) - organization IDskip_verify(boolean) - whether to skip TLS certificate verificationhttp_debug(boolean) - whether to inspect communication with InfluxDB server
https://github.com/gobackup/gobackup/blob/main/database/influxdb2.go (opens in a new tab)
Example
models:
influxdb2_backup:
description: "Perform local influxdb v2 backup"
schedule:
# At 04:05 on Sunday.
cron: "5 4 * * sun"
compress_with:
type: tgz
default_storage: local
storages:
local:
type: local
keep: 10
path: /tmp/gobackup
databases:
influxdbv2-oss:
type: influxdb2
host: http://localhost:8086
token: my-token