Question: Is there a way (plugin or tool) to export the data from the database (or database itself) ? I'm looking for this feature as I need to migrate a DB from present host to another one.

Answer: 
If I use curl, I get timeouts, and if I use `influxd backup` its not in a format I can read.

I'm getting fine results like this:

```
influx -host influxdb.mydomain.com -database primary -format csv -execute "select time,value from \"continuous\" where channel='ch123'" > outtest.csv

```
If you have access to the machine running Influx db I would say use the [influx\_inspect](https://docs.influxdata.com/influxdb/v1.6/tools/influx_inspect/) command. The command is simple and very fast. It will dump your db in [line protocol](https://docs.influxdata.com/influxdb/v1.6/write_protocols/line_protocol_tutorial/). You can then import this dump using [influx -import](https://docs.influxdata.com/influxdb/v1.6/tools/shell/#import-data-from-a-file-with-import) command.