influxdata / influxdb-client-python

InfluxDB 2.0 python client
https://influxdb-client.readthedocs.io/en/stable/
MIT License
706 stars 185 forks source link

Add functionality to read from an InfluxDB backup without restoring data to InfluxDB instance #661

Closed wolfig closed 1 month ago

wolfig commented 2 months ago

Proposal: I suggest to enhance the existing client or to create an additional client such that the client is able to read an InfluxDB backup data store without restoring it to a running InfluxDB instance. Via the client it shall be possible to perform simple queries to the data backed up before.

Current behavior: To my knowledge, this is not possible to access the backup data store in a reasonable manner without restoring it to an InfluxDB instance.

Desired behavior:

Alternatives considered: Restore backup and extract data from live DB instance, drop data after extraction.

Use case: In our environment, the database size needs to be kept below a quite small size on disk (256 GB). Hence, regulary backups of the database are created and the DB is wiped from data. However, administrators regularly get requests to access data (mostly of one single measurement) from already backed up data.

bednar commented 1 month ago

Hi @wolfig,

Thank you for your proposal and for your interest in enhancing our project. We currently do not have this type of function on our development backlog.

Given this, would you be interested in helping us implement it? We welcome contributions from our community, and your involvement could greatly accelerate the inclusion of this new function. If you're willing, we would be delighted to support you through the process and provide any necessary guidance or resources.

Please let us know if this is something you would be able to assist with, and we can discuss the next steps.

Best Regards