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: 
Export data:

```
sudo service influxdb start (Or leave this step if service is already running)
influxd backup -database grpcdb /opt/data  

```

grpcdb is name of DB and back up will be saved under /opt/data directory in this case.

Import Data:

```
sudo service influxdb stop  (Service should not be running)
influxd restore -metadir /var/lib/influxdb/meta /opt/data
influxd restore -database grpcdb -datadir /var/lib/influxdb/data /opt/data
sudo service influxdb start

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