Back up data
InfluxDB 2.0 (release candidate)
The influx backup
command is not compatible with InfluxDB 2.0 (release candidate). To back up data,
- Stop
influxd
.
For more information, see .
The command requires:
- The directory path for where to store the backup file set
- The root authorization token (the token created for the first user in the InfluxDB setup process).
Back up data with the influx CLI
# Syntax
influx backup <backup-path> -t <root-token>
influx backup \
path/to/backup_$(date '+%Y-%m-%d_%H-%M') \
-t xXXXX0xXX0xxX0xx_x0XxXxXXXxxXX0XXX0XXxXxX0XxxxXX0Xx0xx==