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 You want to export in an readable format, the inspect command is to prefer.
To export the database with the name HomeData the command is:

```
sudo influx_inspect export -waldir /var/lib/influxdb/wal -datadir /var/lib/influxdb -out "influx_backup.db" -database HomeData

```

The parameters for -waldir and -datdir can be found in /etc/influxdb/influxdb.conf.

To import this file again, the command is:

```
influx -import -path=influx_backup.db

```
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.