Hi, I'm translating the document How rsync works to understand exactly how rsync works when it finds modified files. I'm translating "the sender" and I notice a strange fact. I would like to take an example where a byte is missing in a file. In facts : The generator has created a cheksum for the first file to the sender. Then, a checksum is created for the local file beginning at the first byte on the receiver. Now, knowing that the first file has a byte less than the second. Will rsync erase the byte in excess on the receiver even if the --delete option is not set ? I ask that because in case the sender file is bigger than the receiver one, evrything is in the document but I didn't notice the second case or maybe I misunderstood it. In any case, I hope you will answer me. Cheers, Micka?l Grignon. -------------- next part -------------- HTML attachment scrubbed and removed
On 7/8/06, Grignon Micka?l <mgrignon@assonance.fr> wrote:> Will rsync erase the byte in excess on the receiver even if the --delete > option is not set ?Yes. --delete is only needed to delete entire files, not extraneous bytes. Wayne, let me suggest the following clarification/fix to the original document. Micka?l, you might want to apply it to your translation. Change the following sentence:> In this way the generator will send to the receiver a sequence of non-matched data interspersed with matching block information.To: In this way, the sender will give the receiver a description of how to reconstruct the source file; the description consists of raw data to write to the new destination file interspersed with instructions to copy matched blocks from the basis file (which is usually the old destination file) to the new destination file. Perhaps the "basis file" should be defined earlier, under "The Generator". Matt