3 ms·
I often find myself wishing for this block cloning thing, but with rsync hooks. Like suppose you're copying a large genome from A to B, and you already have a
by __MatrixMan__ 3y ago
I often find myself wishing for this block cloning thing, but with rsync hooks.
Like suppose you're copying a large genome from A to B, and you already have a genome from that species (but different organism) lying around on B.
Sure, you could clone and then rsync on top of the clone to avoid transferring the common bits again. But that's forethought that users often don't have. Better to use the rolling hash related metadata that rsync generates as a query into all possible targets and pick one automatically so that the user doesn't have to think about it and just sees it as a really fast copy.
- hotpotamus 3y agoCouldn't you just send a diff/patch?
- __MatrixMan__ 3y agoThat would require you to know ahead of time what you're patching, and to have a copy of it on the source machine so you could generate the patch. This would be automatic. If there's similarity on the target, use it, but without requiring the user to tell you where to find it.