Copying data between measurements in different databases

Dear all,

I am new to using InfluxDB and apologize for my limited knowledge.

I have a database A with a certain number of measurements in it, and I want to copy one of these measurements in its entirety to database B.

What command should I use?

Please note that both database A and B are on localhost, but they are under different retention policies

Thanks

Hello @Alexander_Var,
There isn’t a single command. How much data is in DB A?
Are you looking to continuously copy data?

If you’re looking to continuously copy data try:

If its a small amount of data you can query it with a client library and write it back to a new DB B.

Hello, thank you very much for your answer.

I need to migrate data from Influx 1.x to 2.7 only once.