#zookeeper #utility #backup #cli-applications

app zk-loader

CLI application for downloading and uploading zookeeper znodes data

4 releases

Uses old Rust 2015

0.2.0 Apr 18, 2021
0.1.2 Sep 6, 2020
0.1.1 Aug 22, 2020
0.1.0 Nov 4, 2019

#12 in #zookeeper

MIT/Apache

26KB
520 lines

Downloads and uploads zookeeper znodes data

USAGE:
    zk-loader.exe [FLAGS] [OPTIONS]

FLAGS:
        --delete     Delete znodes recursively
    -d, --dump       Dump data from znode to file
    -h, --help       Prints help information
    -r, --restore    Restore data from file to znode
    -V, --version    Prints version information

OPTIONS:
    -e, --excluded-znodes <ZNODES>    Excluded znodes. '/zookeeper' will be excluded any way. [env: ZKLOADER_EXCLUDED=]
    -f, --file <FILE>                 Path to data dump file [env: ZKLOADER_FILE=]  [default: zk-dump.tar.gz]
    -s, --servers <SERVERS>           Zookeeper hosts [env: ZKLOADER_SERVERS=]  [default: 127.0.0.1:2181]
    -z, --znodes <ZNODES>             Znodes paths to dump, restore or delete [env: ZKLOADER_ZNODES=]  [default: /]

Changes:

--- 0.2.0 ---

  • Add environment variables support

--- 0.1.2 ---

  • Flag for deleting znoded added
  • Message output muted

--- 0.1.1 ---

  • Ephemeral znodes are excluded from processing.

Dependencies

~6–15MB
~211K SLoC