Back to Opsview FAQ

Backup & Restore data with Influxdb

Prerequisites Copied

Process Copied

This article is to show you how to backup a database shard for a specific period you would like to take a backup

  1. Log into the influx shell
$ influx
> use opsview
database changed
> show shards
  1. Find the shard that has the period that you are looking for and get its ID (as per your time range) then
influxd backup -portable -shard <SHARDID> -db opsview /var/tmp/backup/influx
  1. then copy the file to your local system or if needed restore to the other influxdb server (i.e the secondary if running HA) and restore
influxd restore -portable -shard <SHARDID> -db opsview /var/tmp/backup/influx

This should do it, it is easy to do but applies to all hosts, so proceed with caution

["Geneos"] ["FAQ"]

Was this topic helpful?