Re: a tool that allows to continue copying between HDDs



On Mon, Jul 13, 2009 at 12:50:25PM -0700, Mike Castle wrote:
On Mon, Jul 13, 2009 at 12:20 PM, Celejar<celejar@xxxxxxxxx> wrote:
I'm no expert in this stuff, so I'm curious - what is gained by this
over a straight rsync?


In my experience, find | cpio is faster than rsync for moving raw
data around. Not sure why, but it feels that way. It's been a long
time since I've done any speed tests.

If I remember correctly, rsync will still use one process for reading
and another for writing, so you end up reading gigs from disk, shoving
gigs over pipe, writing gigs to disk. I'm not sure if that's still
the case or not. The common tar cf - | tar xf - solution has the same
issue. find | cpio just shoves the list of file names across the
pipe, so there's nearly a third less data being moved around. Of
course, all of that may be immaterial on modern machines.

It may also be that find | cpio has less of the fragmentation issues
that rsync does (see discussions in the week or two on this list).
But that's pure guess work on my part.

So why not just use cp -a ?

--
Tzafrir Cohen | tzafrir@xxxxxxxxxx | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir@xxxxxxxxxxxxx | | best
ICQ# 16849754 | | friend


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Best way to copy whole content of HD into another
    ... Our RAID5 array has run out space so I've just created another one using ... I've used rsync to do it, but it has taken over 4 hours... ... and cpio in passthru mode are usually a win ... dump/restore is good if the filesystem supports it AND you remember ...
    (comp.unix.bsd.freebsd.misc)
  • Re: a tool that allows to continue copying between HDDs
    ... find | cpio is faster than rsync for moving raw ... gigs over pipe, writing gigs to disk. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: How to cp ln to another directory
    ... amongst all others you'll also find rsync: ... "Joerg Schilling" wrote in message ... it is beter to use tar to copy instead of cpio. ...
    (comp.unix.solaris)
  • Re: browsing backup images?
    ... The standard tools are tar and cpio. ... rsync can be used to mirror a ...
    (comp.os.linux.misc)
  • Re: Cloning methods
    ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)