I have an instance of InfluxDB installed in one of our customers premise, that I don't have access to.
- When certain problems are reported, I need to identify a window of time (before and after the problem) and provide them a script that can pull out all data in that window.
- The script should generate a set of exported data that my customer will share with me.
I then need to import this data into my instance for analysis.
- I tried to do this using backup/restore but that seems to fail with an error that the database exists.
I am now planning to use FOR each measurement: "influx -execute 'select * from ' -format csv -> measurement.txt
And export all these files as a tar.gz. I still need to figure out how to import this data into my instance but that should not be an issue.
Is there a better way to do this?