Metadata-Version: 2.1
Name: influxdump
Version: 1.0.7
Summary: InfluxDB data backup tool
Home-page: https://github.com/gams/influxdump
Author: Stefan Berder <stefan@measureofquality.com>
Author-email: code+influxdump@measureofquality.com
License: Apache License, Version 2.0
Keywords: influxdb
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Requires-Dist: certifi ==2019.9.11
Requires-Dist: chardet ==3.0.4
Requires-Dist: idna ==2.8
Requires-Dist: influxdb ==5.3.1
Requires-Dist: msgpack ==0.6.1
Requires-Dist: python-dateutil ==2.6.0
Requires-Dist: pytz ==2016.10
Requires-Dist: requests ==2.22.0
Requires-Dist: six ==1.10.0
Requires-Dist: urllib3 ==1.25.3

######################################
influxdump - InfluxDB data backup tool
######################################

The influxdump utility performs data dumps, producing json files that can then
be loaded back into a database.
The major difference with `influxd backup
<https://docs.influxdata.com/influxdb/v1.1/administration/backup_and_restore/>`_
command is that `influxdump` is creating a data snapshot with a lot of
flexibility on how to load it back in the database.

Usage
=====

Dump all data from a database::

    $ influxdump -u jdoe -W -d database > data_dump.json

Dump data from measurements containing the string 'node' in chunk files of
50,000 records::

    $ influxdump -u jdoe -W -d database -F _dump -c 50000 -m "node"

Dump data from measurements starting with the string 'node' in chunk files of
10,000 records (default) between 1st January 2019 and 31st March 2019 in French
timezone::

    $ influxdump -u jdoe -W -d database -F _dump -m "^node.*" --start "2019-01-01T00:00:00+01:00" --end "2019-03-31T23:59:59+01:00"

Load data from a dump folder::

    $ influxdump -u jdoe -W -d database -F _dump


Install
=======

.. code:: sh

    $ pip install influxdump

Packaging
=========

Create packages:

.. code:: sh

    $ python setup.py sdist bdist_wheel

Push package:

.. code:: sh

    $ twine upload dist/*
    $ twine upload -r pypi dist/*


License
=======

This software is licensed under the Apache License 2.0. See the LICENSE file in the top distribution directory for the full license text.


