zoodumper
Sometimes you need to make a fast dump of zookeeper tree and store it on other host, for example when moving from one virtual machine to another. Hope these small utility could help.
Tested on python 3.6, kazoo 2.2.1
Installation:
A tool can be easily installed using pip:
pip install zoodumper
Dump data from zookeeper
zoodumper dump [OPTIONS]
Dumps zookeeper nodes and their values to json file.
Options: -s, --server TEXT zookeeper host [required] -p, --port INTEGER zookeeper port, by default it is 2181 -b, --branch TEXT root branch for reading, default behaviour is to read everything from root -e, --exclude TEXT comma-separated list of branches to exclude, default behaviour is not to exclude branches
Example of usage:
zoodumper dump -s testsrv -p 2181 -b /startbranch -e /branch/subbranch,/branch/not/export/me/please
Load data from dump to zookeeper
zoodumper load [OPTIONS]
Loads zookeeper nodes and their values from dump file. If node exists - it's value will be updated, if doesn't exist - will be created.
Usage: Options:
-s, --server TEXT zookeeper host [required]
-p, --port INTEGER zookeeper port, by default it is 2181
-f, --dump_file TEXT dump file, created when executed dump command [required]
Example of usage:
zoodumper load -f testsrv.zk.json -s testsrv -p 2181
Metadata
Release files for zoodumper 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zoodumper-0.1.tar.gz | 3.1 kB | Without provenance | Details for zoodumper-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zoodumper-0.1-py3-none-any.whl | Python 3 | none | any | Details for zoodumper-0.1-py3-none-any.whl |
Total release size: 7.4 kB
Release files / zoodumper-0.1.tar.gz
| Download URL | zoodumper-0.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22654f660d0d76cb97e55dc4c203f9e1de4758b7ffaba37d5d4ec63c799a977f
|
|
BLAKE2b-256 checksum How to use checksums |
e86caf1f9cec1f34254b1b0f24c66ef28a20c7fc98a3159db3f6a25be1c74caa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.4
|
Release files / zoodumper-0.1-py3-none-any.whl
| Download URL | zoodumper-0.1-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce131fb0fd895db285e8a4a7119758e4e6e02789e63d52efbd5798b48a193b29
|
|
BLAKE2b-256 checksum How to use checksums |
f0d3cdb36982caf06a6957d5bcb3ff1a5ba294b4154f3aef9c646d4c0f6abc60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.4
|
Security for zoodumper 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.