Here is my dilemma:
# Create the original file
dd if=/dev/urandom of=file1.bin bs=1M count=100
# Create an exact copy. Both files are now exactly the same
cp file1.bin file2.bin
# Change some bytes in the original file so it is different from the copy
dd if=/dev/zero of=file1.bin bs=1M seek=10 count=1
Now I want to copy just the 1MB of data that is different from file1.bin to file2.bin - how?
I tried to use rsync but it copies the whole 100MB.
zsync works but it is mainly for downloading files from the net.