linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* "resume" cp/mv
@ 2006-02-06 15:28 urgrue
  2006-02-06 15:40 ` Thornton Prime
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: urgrue @ 2006-02-06 15:28 UTC (permalink / raw)
  To: linux-admin

Anyone know of any trick to make mv/cp support some form of crash-recovery?

The problem is, if I'm moving a huge directory/file, and the transfer 
fails, there is absolutely no way to continue where I left off. This is 
awfully primitive.

The only way I can think of is to zssh into my own localhost and use 
rz/sz, or the same via ftp, but this seems like a pathetic kludge, and 
even those dont work very well with large directories full of files.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: "resume" cp/mv
  2006-02-06 15:28 "resume" cp/mv urgrue
@ 2006-02-06 15:40 ` Thornton Prime
  2006-02-06 15:42 ` Tim Walberg
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Thornton Prime @ 2006-02-06 15:40 UTC (permalink / raw)
  To: urgrue; +Cc: linux-admin

On 2/6/06, urgrue <urgrue@bulbous.org> wrote:
> Anyone know of any trick to make mv/cp support some form of crash-recovery?

Use rsync.

thornton

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: "resume" cp/mv
  2006-02-06 15:28 "resume" cp/mv urgrue
  2006-02-06 15:40 ` Thornton Prime
@ 2006-02-06 15:42 ` Tim Walberg
  2006-02-06 15:46 ` Scott Taylor
  2006-02-06 15:57 ` hansel
  3 siblings, 0 replies; 8+ messages in thread
From: Tim Walberg @ 2006-02-06 15:42 UTC (permalink / raw)
  To: urgrue; +Cc: linux-admin

Sounds like a good match for rsync...


On 02/06/2006 17:28 +0200, urgrue wrote:
>>	Anyone know of any trick to make mv/cp support some form of crash-recovery?
>>	
>>	The problem is, if I'm moving a huge directory/file, and the transfer 
>>	fails, there is absolutely no way to continue where I left off. This is 
>>	awfully primitive.
>>	
>>	The only way I can think of is to zssh into my own localhost and use 
>>	rz/sz, or the same via ftp, but this seems like a pathetic kludge, and 
>>	even those dont work very well with large directories full of files.
>>	-
>>	To unsubscribe from this list: send the line "unsubscribe linux-admin" in
>>	the body of a message to majordomo@vger.kernel.org
>>	More majordomo info at  http://vger.kernel.org/majordomo-info.html
End of included message



-- 
+--------------------------+------------------------------+
| Tim Walberg              | twalberg@mindspring.com      |
| 830 Carriage Dr.         | www.mindspring.com/~twalberg |
| Algonquin, IL 60102      |                              |
+--------------------------+------------------------------+

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: "resume" cp/mv
  2006-02-06 15:28 "resume" cp/mv urgrue
  2006-02-06 15:40 ` Thornton Prime
  2006-02-06 15:42 ` Tim Walberg
@ 2006-02-06 15:46 ` Scott Taylor
  2006-02-06 15:57 ` hansel
  3 siblings, 0 replies; 8+ messages in thread
From: Scott Taylor @ 2006-02-06 15:46 UTC (permalink / raw)
  To: linux-admin


On Mon, February 6, 2006 07:28, urgrue wrote:
> Anyone know of any trick to make mv/cp support some form of
> crash-recovery?
>
> The problem is, if I'm moving a huge directory/file, and the transfer
> fails, there is absolutely no way to continue where I left off. This is
> awfully primitive.
>
> The only way I can think of is to zssh into my own localhost and use
> rz/sz, or the same via ftp, but this seems like a pathetic kludge, and
> even those dont work very well with large directories full of files.

Maybe you want to try cpio?  Less likely to fail then mv or cp on large
trees.  As with mv or cp you skip files that already exist, no need to
start over.

--
Scott


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: "resume" cp/mv
  2006-02-06 15:28 "resume" cp/mv urgrue
                   ` (2 preceding siblings ...)
  2006-02-06 15:46 ` Scott Taylor
@ 2006-02-06 15:57 ` hansel
  2006-02-07  7:28   ` Prosenjit Kundu
  3 siblings, 1 reply; 8+ messages in thread
From: hansel @ 2006-02-06 15:57 UTC (permalink / raw)
  To: urgrue; +Cc: linux-admin

I've used 'cp -u' for a similar problem (where I really am updating
parallel --backup-- directories of huge graphics files).

Mark Hansel

On Mon, 6 Feb 2006, urgrue wrote:

> Anyone know of any trick to make mv/cp support some form of crash-recovery?
> 
> The problem is, if I'm moving a huge directory/file, and the transfer 
> fails, there is absolutely no way to continue where I left off. This is 
> awfully primitive.
> 
> The only way I can think of is to zssh into my own localhost and use 
> rz/sz, or the same via ftp, but this seems like a pathetic kludge, and 
> even those dont work very well with large directories full of files.
> -

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: "resume" cp/mv
  2006-02-06 15:57 ` hansel
@ 2006-02-07  7:28   ` Prosenjit Kundu
  2006-02-07 15:50     ` urgrue
  0 siblings, 1 reply; 8+ messages in thread
From: Prosenjit Kundu @ 2006-02-07  7:28 UTC (permalink / raw)
  To: hansel@hansel.mnstate.edu; +Cc: linux-admin

I have also used 'cp -u'.......but rsync is better match for it.

PK

On 2/6/06, hansel@hansel.mnstate.edu <hansel@hansel.mnstate.edu> wrote:
> I've used 'cp -u' for a similar problem (where I really am updating
> parallel --backup-- directories of huge graphics files).
>
> Mark Hansel
>
> On Mon, 6 Feb 2006, urgrue wrote:
>
> > Anyone know of any trick to make mv/cp support some form of crash-recovery?
> >
> > The problem is, if I'm moving a huge directory/file, and the transfer
> > fails, there is absolutely no way to continue where I left off. This is
> > awfully primitive.
> >
> > The only way I can think of is to zssh into my own localhost and use
> > rz/sz, or the same via ftp, but this seems like a pathetic kludge, and
> > even those dont work very well with large directories full of files.
> > -
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


--
Regards,
Prosenjit Kundu

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: "resume" cp/mv
  2006-02-07  7:28   ` Prosenjit Kundu
@ 2006-02-07 15:50     ` urgrue
  2006-02-08  6:07       ` Jeff Woods
  0 siblings, 1 reply; 8+ messages in thread
From: urgrue @ 2006-02-07 15:50 UTC (permalink / raw)
  To: Prosenjit Kundu; +Cc: hansel@hansel.mnstate.edu, linux-admin

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?

Prosenjit Kundu wrote:
> I have also used 'cp -u'.......but rsync is better match for it.
> 
> PK
> 
> On 2/6/06, hansel@hansel.mnstate.edu <hansel@hansel.mnstate.edu> wrote:
>> I've used 'cp -u' for a similar problem (where I really am updating
>> parallel --backup-- directories of huge graphics files).
>>
>> Mark Hansel
>>
>> On Mon, 6 Feb 2006, urgrue wrote:
>>
>>> Anyone know of any trick to make mv/cp support some form of crash-recovery?
>>>
>>> The problem is, if I'm moving a huge directory/file, and the transfer
>>> fails, there is absolutely no way to continue where I left off. This is
>>> awfully primitive.
>>>
>>> The only way I can think of is to zssh into my own localhost and use
>>> rz/sz, or the same via ftp, but this seems like a pathetic kludge, and
>>> even those dont work very well with large directories full of files.
>>> -
>> -
>> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
> 
> 
> --
> Regards,
> Prosenjit Kundu
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: "resume" cp/mv
  2006-02-07 15:50     ` urgrue
@ 2006-02-08  6:07       ` Jeff Woods
  0 siblings, 0 replies; 8+ messages in thread
From: Jeff Woods @ 2006-02-08  6:07 UTC (permalink / raw)
  To: urgrue; +Cc: Prosenjit Kundu, hansel@hansel.mnstate.edu, linux-admin

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 <kazrak+kernel@cesmail.net> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-02-08  6:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-06 15:28 "resume" cp/mv urgrue
2006-02-06 15:40 ` Thornton Prime
2006-02-06 15:42 ` Tim Walberg
2006-02-06 15:46 ` Scott Taylor
2006-02-06 15:57 ` hansel
2006-02-07  7:28   ` Prosenjit Kundu
2006-02-07 15:50     ` urgrue
2006-02-08  6:07       ` Jeff Woods

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).