ZKTREEUTIL(1)

πŸ“¦
version 3.4.13 Β· 2 versions
, in ubuntu jammy

πŸ’– ZKTREEUTIL πŸ’–

okay bestie, gather round, because we're talking about zktreeutil β€” that's the manual page ZKTREEUTIL(1) from the User Commands girlies, version 0.0. she's a whole mood and she's about to run your ZooKeeper tree like it's her own group chat. no cap. πŸ¦‹


✨ NAME ✨

zktreeutil β€” manual page for zktreeutil 0.0 πŸ’…


🌸 SYNOPSIS 🌸

zktreeutil [args-and-values]+

like, you have to give her at least one arg-and-value combo. she's not a mind reader, she's a utility. πŸ™ˆ


πŸ‘‘ DESCRIPTION πŸ‘‘

ZK-tree utility for managing ZK-tree with XML import/export, viewing diff between live and saved ZK-tree and performing incremental update of the same. πŸ’–

so basically: manage the ZK-tree, import/export it as XML, peek at the diff between what's live and what's saved, and do incremental updates of the same. iconic behaviour, honestly. ⭐

here's the rundown of every flag she takes, and yes, we're doing all of them, because we don't skip. periodt. πŸŽ€

  • --import or -I β€” Imports the zookeeper tree from XML file. Must be specified with --zookeeper AND --xmlfile options. Optionally takes --path for importing subtree. πŸ“₯
  • --export or -E β€” Exports the zookeeper tree to XML file. Must be specified with --zookeeper option. Optionally takes --path for exporting subtree. πŸ“€
  • --update or -U β€” Updates zookeeper tree with changes from XML file. Update operation is interactive unless specified with --force option. Must be specified with --zookeeper AND --xmlfile options. Optionally takes --path for updating subtree. πŸ”„
  • --diff or -F β€” Creates a list of diff actions on ZK tree based on XML data. Must be specified with --zookeeper OR --xmlfile options. Optionally takes --path for subtree diff. πŸ‘€
  • --dump or -D β€” Dumps the entire ZK (sub)tree to standard output. Must be specified with --zookeeper OR --xmlfile options. Optionally takes --path and --depth for dumping subtree. πŸ—‘οΈβœ¨
  • --xmlfile=<filename> or -x <filename> β€” Zookeeper tree-data XML file. πŸ“„
  • --path=<znodepath> or -p <znodepath> β€” Path to the zookeeper subtree rootnode. 🌳
  • --depth=<tree-depth> or -d <tree-depth> β€” Depth of the ZK tree to be dumped (ignored for XML dump). πŸ“
  • --force or -f β€” Forces cleanup before import; also used for forceful update. Optionally be specified with --import and --update. πŸ’₯
  • --help or -h β€” prints this message. 🫢
  • --zookeeper=<zkhosts> or -z <zkhosts> β€” specifies information to connect to zookeeper. πŸ”Œ
okay real talk bestie: --update is interactive unless you hand her --force, so don't be out here surprised when she starts asking you questions. and --depth gets straight-up ignored for XML dump β€” she said what she said. πŸ’€

and that's the whole page, no notes, she ate and left absolutely zero crumbs. πŸ“

this was zktreeutil 0.0, dated December 2023, and the man page signs off as ZKTREEUTIL(1). mwah. πŸ’œπŸ§š

πŸ“¦ where this page comes from