26 October 2022

Backup influxdb

By Bolukan

This is an instruction how to backup data in fluxdb in a configuration of a influxdb docker container managed with portainer.

Find your token <your_token> to communicate with influxdb.

Open the container menu in portainer and start the >_ Console.

cd /var/lib/influxdb2
mkdir backup

influx backup -t <your_token> /var/lib/influxdb2/backup

use your preferred file transfer method to retrieve the backup.