Tool introduction http://librsync.sourcefrog.net/doc/rdiff.html
Use the Rsync algorithm to copy files.
Signature
Rdiff [Options] signature input Signature
Rdiff signature generates a signature file from an input file. The signature can later be used to generate a Delta relative to the old file.
Delta
Rdiff [Options] Delta signature newfile Delta
Rdiff Delta reads in a Delta describing a basis file. It then calculates and writes a Delta that transforms the basis into the new file.
Patch
Rdiff [Options] patch basis Delta output
Basic usage:
Scenario: If you want to transfer the A1 file on host a to the B1 file on host B (A1 and B1 are similar), follow these steps:
1. B First generates a signature file of the B1 file,
Command:
Rdiff-V Signature B1 b1.sig
2. host a calculates the differences between files A1 and b1.sig and becomes b1.del
Rdiff-V Delta b1.sig A1 b1.del
3. Host B re-creates the new file newa1 Based on the b1.del file and B1, consistent with A1
Rdiff-V patch B1 b1.del newa1
From: http://blog.csdn.net/moxuansheng/article/details/6696733