From: Jeff Woods Subject: Re: "resume" cp/mv Date: Tue, 07 Feb 2006 23:07:29 -0700 Message-ID: <7.0.1.0.0.20060207230104.00e50ac0@cesmail.net> References: <43E76B06.50201@bulbous.org> <42c5b570602062328k353945f7hc53d1448e939e718@mail.gmail.com> <43E8C1B8.1070601@bulbous.org> Mime-Version: 1.0 Return-path: In-Reply-To: <43E8C1B8.1070601@bulbous.org> References: <43E76B06.50201@bulbous.org> <42c5b570602062328k353945f7hc53d1448e939e718@mail.gmail.com> <43E8C1B8.1070601@bulbous.org> Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit To: urgrue Cc: Prosenjit Kundu , "hansel@hansel.mnstate.edu" , linux-admin@vger.kernel.org At 17:50 +0200 2/7/2006, urgrue wrote: >rsync certainly helps with large directories, so thats at least a >partial solution, but it doesnt resume an interrupted transfer of an >individual file, does it? rsync compares file size and timestamp(s?) and if they are the same it presumes the contents are the same. If they differ it then reads the file and generates checksums for each chunk of the file, compares the checksums (much faster network load than sending the data) and only updates the chunks that don't have a matching checksum. This implies that it does not resend (or rewrite) the bulk of the file that's consistent, but that it has to read all of both the source and destination file. If you're rsync'ing over a network the performance is reasonably close to resuming where it left off but it doesn't depend on maintaining the state of an aborted copy. Note: Options exist to override or tune several of the details above, but I believe what I described is essentially the normal rsync behavior. -- Jeff Woods