Move the data from one bucket to another bucket

Hello, @Ravikant_Gautam

I’m with a similar problem, where I want to move an amount of data from a bucket to the other in an efficient way.

You could alternatively use the influxdb_client, using the query_api() to pull the data and write_api to write in your new bucket.

This has similar problems as using the UI, depending on how fast, and how big your data ingest is, the RAM and CPU usage become too high, and in my case eventually crash the database.

Alternatively, I tried creating a new bucket, and manually copying the data from the original bucket in the engine/data and engine/wal folders. In this case, it didn’t work, as the DB didn’t recognize the new bucket has that data. Maybe someone from dev team can comment on that? @Anaisdg

Anyway, just sharing my experience. Hope gives you some light into it.

Regards