Efficiently transfer data over SSH by deduplicating file blocks.
Project details
hashsync is a groundbreaking tool that optimizes data transfers over SSH by deduplicating command outputs and inputs. By sending references to existing file blocks rather than entire contents, hashsync drastically reduces bandwidth usage, making it ideal for syncing files across systems with similar data.
hashsync is a powerful utility designed to optimize command execution on remote hosts over SSH by deduplicating input and output data streams. This innovative approach minimizes bandwidth usage significantly by replacing duplicated content with block references derived from files already present on the receiving host. By utilizing efficient techniques such as block-level deduplication and zstd compression, hashsync ensures that data transfers are both effective and fast.
rsync operations by allowing file transfers to deduplicate against the receiving host's file index, thus reducing redundant data transfer when files are renamed or moved.A practical example of using hashsync with rsync would look like this:
# Copying data with deduplication against existing files
rsync -a --copy-dest=../v1 -e 'hashsync ssh' nas:/srv/data/v2/ /srv/data/v2/
In this example, any block of data that exists in /srv/data/v1 is referenced rather than resent, leading to significant bandwidth savings.
hashsync represents a significant advancement in the realm of data transfer over SSH, offering enhanced efficiency and performance. Its ability to deduplicate data intelligently makes it a valuable tool for system administrators and developers who manage large data sets across various environments. For more details, refer to the man page or the full documentation available in the repository.
Comments
0Start the conversation
Share the first comment.