# zkcopy **Repository Path**: java_wangyin/zkcopy ## Basic Information - **Project Name**: zkcopy - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-10-31 - **Last Updated**: 2024-10-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # zkcopy Tool for fast copying ZooKeeper data between different clusters. Originally it was developed for copying big volumes of configuration over WAN. ## Build Requires [apache maven 3](https://maven.apache.org/). ```bash mvn clean install ``` ## Usage ```bash java -jar target/zkcopy.jar --source server:port/path --target server:port/path ``` With [docker](https://hub.docker.com/r/ksprojects/zkcopy/), use following commands: ```bash docker pull ksprojects/zkcopy docker run --rm -it ksprojects/zkcopy --source server:port/path --target server:port/path ``` ## Options ``` Usage: zkcopy [-ci] [--help] [--timeout=] [-b=] [-m=] -s=server:port/path -t=server:port/path [-w=] --help display this help and exit --timeout= Session timeout in milliseconds Default: 40000 -b, --batchSize= Batch write operations into transactions of this many operations. Batch sizes are limited by the jute.maxbuffer server-side config, usually around 1 MB. Default: 1000 -c, --copyOnly[=] set this flag if you do not want to remove nodes that are removed on source -i, --ignoreEphemeralNodes[=] set this flag to false if you do not want to copy ephemeral ZNodes -m, --mtime= Ignore nodes older than mtime Default: -1 -s, --source=server:port/path location of a source tree to copy -t, --target=server:port/path target location -w, --workers= number of concurrent workers to copy data Default: 100 ```