Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 26, 2024. It is now read-only.

alexferl/influxcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

influxcat

A simple tool to dump and restore InfluxDB timeseries. This is NOT a replacement for InfluxDB's backup and restore feature as this tool is very naive and was made more to restore data from an InfluxDB instance to another for testing and/or debugging purposes.

Installing

If you have Go installed on your computer:

go install github.com/alexferl/influxcat

If you don't have Go installed, download the latest release binary from here.

Using

View available commands and help:

$ influxcat

A tool to dump and restore InfluxDB timeseries

Usage:
  influxcat [command]

Available Commands:
  dump        Dumps a timeseries from a database
  help        Help about any command
  restore     Restores a timeseries into a database
  version     Prints the version number

Flags:
  -a, --addr string       addr should be of the form "http://host:port" (default "http://localhost:8086")
  -c, --config string     config file (default is $HOME/.influxcat.yaml)
  -d, --database string   database is the InfluxDB database, required
  -h, --help              help for influxcat
  -p, --password string   password is the InfluxDB password, optional
  -s, --series string     series is the InfluxDB timeseries, required
  -u, --username string   username is the InfluxDB username, optional

Use "influxcat [command] --help" for more information about a command.

Dumping a timeseries to a file:

$ influxcat dump -d mydb -s myts data.json
done dumping mydb.myts (1337 rows)

Restoring a timeseries from a file (the target database has to exist):

$ influxcat restore -d mydb -s myts data.json
finished restoring mydb.myts (1337 rows)

About

A simple tool to dump and restore InfluxDB timeseries

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages