Skip to content

messa/blockcopy

Repository files navigation

blockcopy

Copy large files (VM devices, LVM snapshots...) efficiently over network.

Designed for copying from/to NVMe disks over gigabit network. Uses threadpool for computing hashes so that copy speed is not limited by CPU.

Installation

You can just download the file blockcopy.py to /usr/local/bin and run it.

Or you can install this package unsing pip install and then run the script as blockcopy:

python3 -m pip install https://github.com/messa/blockcopy/archive/refs/heads/main.zip

Usage

blockcopy.py checksum /dev/destination | ssh srchost blockcopy.py retrieve /dev/source | blockcopy.py save /dev/destination

Or:

ssh dsthost blockcopy.py checksum /dev/destination | blockcopy.py retrieve /dev/source | ssh dsthost blockcopy.py save /dev/destination

Alternative software

Internet discussions I found relevant to the topic of copying block devices over network:

About

Copy large files and block devices effeciently over network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published