On 03 7, 05, at 1:01 PM, Bopolissimus Platypus Jr wrote:
On Sun, 6 Mar 2005 14:01:02 -0500 (EST), [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:How does rsync deal with insertions in the middle of a big file?
in general:
http://samba.anu.edu.au/rsync/tech_report/
Will rsync be efficient enough to just somehow 'insert' 123 and 456 within the file or will it modify/try to backup all the blocks from 123 onwards?
the technical report doesn't say. you'd probably need to read the code for that.
i kind of doubt if rsync would just insert the differences into the file. that's a very special, and probably relatively uncommon case for most files (although it is probably very common for record oriented files). it's probably just not common enough to be worth writing special code to detect that the block from the source can be inserted directly into the right place in the destination and that the block sizes, are exactly the same.
but hey, if someone will test and tell us what happens, that'd be cool :).
tiger
-- Gerald Timothy Quimpo http://bopolissimus.blogspot.com [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78" Mene sakhet ur-seveh -- Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
-- Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
