This is a tool to copy contents from one NBD server to another over application layer NBD protocol, using io_uring for async I/O for speed.
More documentation can be found in the docs folder.
Currently only localhost is supported with oldstyle hand shake.
nbdcpy <source-port> <destination-port>
ex:
nbdcpy 10879 8080
This copies all data from NBD server at port 10879 to NBD server 8080.
Run
mkdir build && cd build
conan install ..
cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=1 # generates compile_commands.json
Note: Omit ln -s ...
for windows manually copy compile_commands (AFAIK ln is not supported on windows).
cd build
make -jX
X: number of CPU threads on your machine
cd build
conan install ..
cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=1
Binary/app can be found in build/bin/
which will be same as your project name.